+ 1
Hi,everyone What is the error here
https://sololearn.com/compiler-playground/c5bUmtwV8D8I/?ref=app
3 Answers
+ 2
Hi Yusof line 7 should be changed to fname = name.next(); since you defined the scanner object as name. Your code is similar to the one found here. https://www.w3schools.com/java/java_user_input.asp
+ 1
ThxChris Coder it works now
+ 1
Fantastic! Happy Coding!