what are the errors in following code fragment?
String name ="123";
if(name.length() = 3) {
System.out.println ("Length is three");
}
Answers
Answered by
1
String name ="123"; , ; must no be there
name.length() , ( is also wrong
name.length() , ( is also wrong
Answered by
1
String name ="123"; , ; must no be there
name.length() , ( is also wrong
Similar questions
Math,
7 months ago
Science,
7 months ago
English,
7 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago
Biology,
1 year ago