What's wrong while taking input | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

What's wrong while taking input

It's showing error. Why?? https://code.sololearn.com/cX4ct0ySqpxq/?ref=app

15th Nov 2021, 4:52 PM
Atulya Vaibhav Pandey
Atulya Vaibhav Pandey - avatar
3 Réponses
+ 1
nextLine() <- with uppercase 'L' nextline() <- with lowercase 'L' We must call methods by their name correctly. A difference of a letter, or letter case matters for case sensitive languages.
16th Nov 2021, 2:01 AM
Ipang
+ 2
Line 7: swallow.nextLine(), not swallow.nextline() Java is a case sensitive language, must take care to minimize typos
15th Nov 2021, 5:01 PM
Ipang
+ 2
@Ipang what's different ?
16th Nov 2021, 1:47 AM
Atulya Vaibhav Pandey
Atulya Vaibhav Pandey - avatar