Home arrow static arrow Java Programming [Archive] - need help
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - need help
This topic has 1 reply on 1 page.

Posts:8
Registered: 7/9/04
need help  
Jul 13, 2004 9:13 AM



 
I'm getting the following errors from using equals();


java:20: int cannot be dereferenced
mi.getOriginator( ).equals(originator));
^
java:21: int cannot be dereferenced
mi.getNumber( ).equals(number));

2 errors

I'm not sure what this means, can you help?

Lita_96
 

Posts:192
Registered: 30/05/01
Re: need help  
Jul 13, 2004 9:19 AM (reply 1 of 1)



 
Looks like you are calling a method on a primitive int

what type of object should 'mi' be?
 
This topic has 1 reply on 1 page.