Well, first of all, in an ArrayList you will have Integers, not ints (you may have added ints, but they will have been autoboxed into Integers). Secondly, you will need to tell ArrayList what type of Object array will be output, otherwise it will output an Object, i.e.
Once you have an Integer array, you can then use each of its elements as if it were an int, thanks to autoboxing, but if you want a real int array, you will have to create one yourself, and copy the contents from the ArrayList (or the Integer) into the int (you can, once again, let autoboxing make the conversions, but you will have to copy the elements "manually", so to say).
i am trying to create a library management system which is supposed to be used to store/keep infp for the library and the library members( book title, author, name and picture for borrower and other stuffs). The app has 6 buttons, delete, save, add,previsous,next, and upload( for upload ...