class UpbitAccountInfoDemo {
  public static void main(String[] args) throws IOException {

    Exchange upbit = UpbitDemoUtils.createExchange();
    AccountService accountService = upbit.getAccountService();

    generic(accountService);
    raw((UpbitAccountServiceRaw) accountService);
  }

  private static void generic(AccountService accountService) throws IOException {
    AccountInfo accountInfo = accountService.getAccountInfo();
    System.out.println("Wallet: " + accountInfo);
    System.out.println(
        "ETH balance: " + accountInfo.getWallet().getBalance(Currency.ETH).getAvailable());
  }

  private static void raw(UpbitAccountServiceRaw accountService) throws IOException {<FILL_FUNCTION_BODY>}
}

    UpbitBalance[] upbitBalance = accountService.getWallet().getBalances();
    Arrays.stream(upbitBalance)
        .forEach(
            balance -> {
              System.out.println(
                  "UPBIT Currency : "
                      + balance.getCurrency()
                      + " balance :"
                      + balance.getBalance());
            });
  
<no_super_class>