input name and section
what is my mistakeimport java.util.*; public class ScannerClassExample1 { public static void main(String args[]){ String s = "Hello."; Scanner scan = new Scanner(s); System.out.println("Boolean Result: " + scan.hasNext()); System.out.println("String: " +scan.nextLine()); scan.close(); System.out.println("--------Enter Your Details-------- "); Scanner in = new Scanner(System.in); System.out.print("Enter your name: "); String name = in.next(); System.out.println(name); System.out.print("Enter your section: "); String section = in.next(); System.out.println(section); in.close(); } }