How to get Integer[] from java class