SyntaxFix
Write A Post
Hire A Developer
Questions
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