how do I use the scanner function
first you have to import the util package.
then in main function
Scanner scan = new Scanner(System.in);
String s = scan.nextLine();
this will scan the string from screen.
Thank you best my answer.
Content will be erased after question is completed.
Enter the email address associated with your account, and we will email you a link to reset your password.
Forgot your password?