Please I wanna ask each time I use the (.) In java to out put a variable from scanner it keeps telling me object not Identified | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please I wanna ask each time I use the (.) In java to out put a variable from scanner it keeps telling me object not Identified

https://code.sololearn.com/cw9hCSnXefs6/?ref=app

27th Mar 2022, 7:37 AM
Alfred Ibe
6 Answers
+ 1
6
28th Mar 2022, 6:27 AM
zemiak
+ 1
there nust be parentheses () import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner myvar=new Scanner(System.in); String name=myvar.nextLine(); System.out.println("hello"+name); } }
28th Mar 2022, 6:58 AM
zemiak
0
typo at L //myvar.nextline myvar.nextLine
27th Mar 2022, 10:51 PM
zemiak
0
At what line please 🥺
28th Mar 2022, 6:22 AM
Alfred Ibe
0
I've tried changing it it's not working,can you show me how exactly it's written
28th Mar 2022, 6:41 AM
Alfred Ibe
0
Thanks so much,I really appreciate it 😁
28th Mar 2022, 8:06 AM
Alfred Ibe