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

请您先登陆,再发跟帖!