jQuery in Action, 3rd edition
The moose likes Distributed Java and the fly likes int cannot be dereferenced Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "int cannot be dereferenced" Watch "int cannot be dereferenced" New topic

int cannot be dereferenced

Tahir Mehmood

Joined: Nov 04, 2011
Posts: 3

[Edit - added code tags - MB]
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 445

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

Joined: Apr 06, 2010
Posts: 4541

And welcome to The Ranch!
Tahir Mehmood

Joined: Nov 04, 2011
Posts: 3
Thank you! Mathew Brown
I agree. Here's the link: http://aspose.com/file-tools
subject: int cannot be dereferenced
It's not a secret anymore!