This is my first computer course in life, and i started with Java... don't ask why, but plz help me if u r an expert. This is for my school assignment.
we have to construct a method called isOlder.
this method returns true if person A (object of a class) is older than person B, false otherwise. and we are just comparing at the age of this two people.How should i code it if we are not allowed to use if statement?
Big tnx!
newbie in Java asking for help
所有跟帖:
• read inside. why not if -weirdCondi- ♀ (51 bytes) () 10/03/2004 postreply 14:10:02
• 回複:read inside. why not if -T00TO.o- ♀ (768 bytes) () 10/03/2004 postreply 16:58:53
• 回複:回複: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