The BTC shows 10^8 times more than what is received in the account

I work with Java/Maven/JSP app with BitcoinJ and I have transfer about 0.0048 BTC from a testnet faucet. However, after receiving, I see that my account has balance of 480000.00 BTC.

This is the method I have used to get the Satoshi Coin.

public Coin getBalance() {
return balance;
}


I have checked the code and at least my backend part looks normal to me. How to approach to this problem?

Wallet wallet = <initialize wallet here>

• What does the wallet.getBalance() returns? I have tried with several ways and none actually works for me. The method I use to get the Satoshi Coin is public Coin getBalance() { return balance; } How can I get the correct value in BTC? I have also tried with balance.leftShift(8) – Arefe Jun 1 '17 at 4:21