How can I use the ordre Scanner? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I use the ordre Scanner?

I do not know what the trouble in my code I do this: String Password =null; Scanner n=new scanner(system.in) ; Password=n.nextline();…

6th May 2020, 7:20 PM
Amani Toama
Amani Toama - avatar
10 Answers
+ 1
اغاني حماس There were many mistakes in your code.I have corrected all so see my attached code below. https://code.sololearn.com/ciYOp01J9KsY/?ref=app
6th May 2020, 7:31 PM
Souptik Nath
Souptik Nath - avatar
+ 2
What type of error are you getting?
6th May 2020, 7:22 PM
Souptik Nath
Souptik Nath - avatar
+ 1
Please attach your code in this question
6th May 2020, 7:24 PM
Souptik Nath
Souptik Nath - avatar
+ 1
اغاني حماس Java is case sensitive so you must use the corresponding case according to the syntax.If you are a beginner then go and take the free java course here. https://www.sololearn.com/Course/Java/?ref=app
6th May 2020, 7:38 PM
Souptik Nath
Souptik Nath - avatar
0
Cannot find symbol
6th May 2020, 7:24 PM
Amani Toama
Amani Toama - avatar
0
Okay
6th May 2020, 7:25 PM
Amani Toama
Amani Toama - avatar
0
mport java.util.Scanner; class MyClass { public static void main(String[ ] args) { System.out.println("Hello World"); System .out.println ("I will be a programmer"); String userName1=null; String Password1=null; /* enter your userName1 && your Password1 */ Scanner n=new scanner(system.in); userName1 =n.nextline(); Password1 =n.nexrline(); } }
6th May 2020, 7:27 PM
Amani Toama
Amani Toama - avatar
0
Thank you man
6th May 2020, 7:33 PM
Amani Toama
Amani Toama - avatar
0
Sorry but Iam. Not know my mistakes can you declare to me please
6th May 2020, 7:35 PM
Amani Toama
Amani Toama - avatar
0
I am a beginner
6th May 2020, 7:36 PM
Amani Toama
Amani Toama - avatar