Code:
public ArrayList<String> wyswietlHistorieRachunku(String numer_konta) {
try {
BufferedReader br = new BufferedReader(new FileReader("konta//"+numer_konta+".txt"));
ArrayList<String> historia = new ArrayList<String>();
String strLine = br.readLine();
while((strLine = br.readLine()) != null){
historia.add(strLine);
}
br.close();
}catch (FileNotFoundException e) {
System.err.println("Nie ma takiego konta(File not found!)");
}catch (IOException e) {
System.err.println(e);
}catch (Exception ex) {
ex.printStackTrace(); }
}
return historia;
}
why eclipse says syntax error on token return ,invalid type ?
Comment