I\'m new to java (& to OOP too) and I\'m trying to understand about the class ArrayList but I don\'t understand how to use the get(). I tried searching in net, but could
Here is the official documentation of ArrayList.get().
Anyway it is very simple, for example
ArrayList list = new ArrayList(); list.add("1"); list.add("2"); list.add("3"); String str = (String) list.get(0); // here you get "1" in str