I need to display a certain row from a file
问题 i need to get text from selected line from Txt file and print it on JLabel object I am learning Java and I do not have anyone who can help me with this code, thank everyone who will help if you need more code from my project, I can send it public int check(String filename, String str) { int row=0; try{ FileReader fr=new FileReader(filename); BufferedReader br=new BufferedReader(fr); while(br.ready()) { if(br.readLine().equals(str)) { br.close(); return row; } row=row+1; } br.close(); return