newbie in Java asking for help

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!

所有跟帖: 

read inside. why not if -weirdCondi- 給 weirdCondi 發送悄悄話 (51 bytes) () 10/03/2004 postreply 14:10:02

回複:read inside. why not if -T00TO.o- 給 T00TO.o 發送悄悄話 (768 bytes) () 10/03/2004 postreply 16:58:53

回複:回複: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

請您先登陸,再發跟帖!