| Author |
int cannot be dereferenced
|
Tahir Mehmood
Greenhorn
Joined: Nov 04, 2011
Posts: 3
|
|
[Edit - added code tags - MB]
|
 |
Rajkamal Pillai
Ranch Hand
Joined: Mar 02, 2005
Posts: 436
|
|
Thread.getPriority() returns an int value which you have assigned to the variable 'prty'. By using prty.equals(1) you are trying to access it as a java.lang.Integer. In your case use:
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3862
|
|
|
And welcome to The Ranch!
|
 |
Tahir Mehmood
Greenhorn
Joined: Nov 04, 2011
Posts: 3
|
|
|
Thank you! Mathew Brown
|
 |
 |
|
|
subject: int cannot be dereferenced
|
|
|