+ 3

Plz any one tell me what is the error in this java program ???

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

26th Sep 2017, 4:15 PM
Vaibhav Singh Sikarwar
Vaibhav Singh Sikarwar - avatar
3 odpowiedzi
+ 5
You can't use keywords as identifiers. The String 'new' needs a different name. length() is also a method in the String class, not an attribute. So, you must have parenthesis: 'x.length()'
26th Sep 2017, 4:27 PM
Rrestoring faith
Rrestoring faith - avatar
+ 4
thanks friends to make me realized what silly mistake i have done
27th Sep 2017, 7:34 AM
Vaibhav Singh Sikarwar
Vaibhav Singh Sikarwar - avatar