Type: Posts; User: sandeepatreyak
just change the below line as shown below System.out.println("Enter Student Name: "); name=scan.next();