Do i need to import anything here?
hi again, i have found this code online and when i use it says next to process: "cannot find symbol"
do i need to import anything to make it work?
Code :
try {
BufferedReader in = new BufferedReader(new FileReader("array"));
String str;
while ((str = in.readLine()) != null) {
process(str);
}
in.close();
} catch (IOException e) {
}
thanks in advance =]
Re: Do i need to import anything here?
Re: Do i need to import anything here?
yer i have done that but process is still underlined. the help box comes up with:
Quote:
cannot find symbol
symbol: method process(java.lang.String)
location: class Main
Re: Do i need to import anything here?
Process is most likely a method that the person who wrote that code wrote, in which case you can either write it yourself or try to see if they put that code somewhere else.
Re: Do i need to import anything here?
oh ok thanks, i just got the impression it was set but hey i'll take another look!
thanks again for th help!! =]