posted 14 years ago
movies.txt
what code should i put here so that abc[0],abc[1],abc[2] stores the first line of movies.txt
and abc[3] to abc[5] stores the second line of movies.txt asnd so on....
i tried the follwing code in the while loop but it doesnot work
error
DVDInfo.java:54: incompatible types
found : java.lang.String[]
required: java.lang.String
{ab=s.split("/");}
^
1 error
tell me the code to store data from file into array of strings
OCPJP 6.0 93%
OCPJWCD 5.0 98%