I know how to read a text file, but I don't know how to read it orderly. For instance, how to read this" Tosca|Giacomo Puccini|1900|Rome|Puccini’s melodrama about a volatile diva, a sadistic police chief, and an idealistic artist|https://www.youtube.com/watch?v=rkMx0CLWeRQ"? Different information is separated by | , and I want them to display on different JLabel.
I did this
while((line = bufferedReader.readLine()) != null) {
System.out.println(line);
}
What else should I do in the while loop?