farahin samsudin wrote:hi Anayonkar,
it supposed to be boolean right?
Well, I'm not sure why that method is boolean (how a college can be a boolean btw?), but the main issue is, boolean is a primitive (and not a class), and hence, you can't invoke euqals (or any) method on it (besides, you are invoking that method with String argument, but that is another issue).