11th Sep 2024, 12:15 PM
Yusof
Yusof - avatar
3 Respostas
+ 1
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
11th Sep 2024, 12:36 PM
Chris Coder
Chris Coder - avatar
+ 1
ThxChris Coder it works now
11th Sep 2024, 12:42 PM
Yusof
Yusof - avatar
0
Fantastic! Happy Coding!
11th Sep 2024, 1:19 PM
Chris Coder
Chris Coder - avatar