Possible Duplicate:
Assigning an array to an ArrayList in Java
How can I convert a array of strings like :
String logsSplitFromUrdu[] = fromTheRecentLogFile.split("غزل");
into a ArrayList<String>
?
Edit:
I was doing like when I get an error :
ArrayList<String> time = (ArrayList<String>)Arrays.asList(logsSplitFromUrdu);
EDIT :
Exception that I get when do the above :
java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList
at Tester.main(Tester.java:26)