importjava.util.Scanner;publicclassScannerDemo{publicstaticvoidmain(String[]args){System.out.println("==== Example 1 ====");Scannerin=newScanner(System.in);while(in.hasNextLine()){Stringline=in.nextLine();System.out.println(line);}System.out.println("==== Example 2 ====");Stringtext="1 fish 2 fish red fish blue fish";Scannersc=newScanner(text);System.out.println(sc.nextInt());System.out.println(sc.next());System.out.println(sc.nextInt());System.out.println(sc.next());}}
intcount=0;while(count<1){Stringtid=in.next();Stringtype=in.next();Stringtitle=in.next();if(tid.equals("6723592")){System.out.println(tid+" is a "+type+" named "+title);count++;}in.nextLine();}