回複:read inside. why not if

回答: newbie in Java asking for helpT00TO.o2004-10-03 12:05:30

That is because the assignment specified not using da if statement.
mmmm... here is my code... but i'm getting an error msg telling me dat i need a ")".... why?


public boolean isOlder(Object A, Object B) {
FamilyMember A = new FamilyMember(String first, char initial, String last, String gender,
FamilyMember father, FamilyMember mother,
boolean criminal);

FamilyMember B = new FamilyMember(String first, char initial, String last, String gender,
FamilyMember father, FamilyMember mother,
boolean criminal);

while (A.getAge() > B.getAge()) {
return true;
}
return false;
}

所有跟帖: 

回複:回複:read inside. why not if -normalman- 給 normalman 發送悄悄話 (141 bytes) () 10/03/2004 postreply 19:19:25

tnx all for helping!!! :D -T00TO.o- 給 T00TO.o 發送悄悄話 (29 bytes) () 10/03/2004 postreply 21:02:07

也可以用switch case的 -ymud- 給 ymud 發送悄悄話 (0 bytes) () 10/05/2004 postreply 10:54:48

請您先登陸,再發跟帖!