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
所有跟帖:
• 回複:回複:read inside. why not if -normalman- ♂ (141 bytes) () 10/03/2004 postreply 19:19:25
• tnx all for helping!!! :D -T00TO.o- ♀ (29 bytes) () 10/03/2004 postreply 21:02:07
• 也可以用switch case的 -ymud- ♀ (0 bytes) () 10/05/2004 postreply 10:54:48