[Solved] Search Student in File
You are reading lines from the file and assigning its content to str, but you never do something with this value. Also, Student seems to be empty. Supposing your file includes only the ID of the student: BufferedReader read = new BufferedReader(new FileReader(file)); String str; while((str=read.readLine())!=null) { // Your constructor assigns str to ID property … Read more