Computer Science, asked by ArpitaNayak1, 1 year ago

what are the errors in following code fragment?
String name ="123";
if(name.length() = 3) {
System.out.println ("Length is three");
}

Answers

Answered by Anonymous
1
String name ="123"; , ; must no be there

name.length() , ( is also wrong
Answered by vruthikasan
1

String name ="123"; , ; must no be there


name.length() , ( is also wrong

Similar questions