Which of the following statements contains an error?
String genderString = in.next();
String ageString = in.nextInt();
String heightInchesString = in.nextString()
I only
II only
III only
I and II only
II and III only
Vocaloid:
@Ultrilliam can you assist?
Bearclaws72:
Meh goose is cooked if dont get a C on this
Falconmaster:
my answer is my life
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
Falconmaster:
my life is an error
Falconmaster:
maybe d? i have no clue
Bearclaws72:
"sizzle sizzle" Hear that its my goose being cooked
Falconmaster:
is goose good?
Bearclaws72:
Goose= My will to live right now
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
Magic:
Let me boot up my text editor.
Bearclaws72:
Your gonna help @Magic ?
Magic:
Yeah.
Bearclaws72:
Oh thank the lord
Bearclaws72:
Sorry @Ultrilliam Didnt mean to tag you
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
Magic:
I am pretty sure III has an Error. Also, Ultri is probably the most qualified to help. :P
Bearclaws72:
Ok thanks
Bearclaws72:
Which of the following statements contains an error?
char gender = genderString.indexOf('0');
boolean isFemale = gender == 'F';
int age = Integer.parseInt(ageString);
I only
II only
III only
I and II only
II and III only