PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

Can't get item in inventories to string

Open n3wdev opened this issue 10 years ago • 0 comments

Object[] items; items = go.getInventories().getItemBag().getItems().toArray();

for (Object number : items) { System.out.println("Item= " + number.toString().); }

Output = Item= com.pokegoapi.api.inventory.Item@460d0a57

how i cast Object to String?

n3wdev avatar Aug 31 '16 05:08 n3wdev