I made a Scanner look into a text file (in the text file anything in it would be formatted: string,string,string....). Then, i made a while loop:



while(scanner.hasNext()){
String a =...