This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Android and the fly likes java.lang.Integer error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "java.lang.Integer error" Watch "java.lang.Integer error" New topic
Author

java.lang.Integer error

Naishadh Parmar
Ranch Hand

Joined: Jun 02, 2011
Posts: 95

Hey guys,
I get this error:
"Class File Editor

Source not found
The source attachment does not contain the source for the file Integer.class.
You can change the source attachment by clicking Change Attached Source Below:

(Button)Change attached Source ....."

for this code:

In Eclipse IDE.
Please help
Chrobione Robinson
Greenhorn

Joined: Dec 06, 2011
Posts: 7


This is where your issue is....location.getLongitude() returns a double.

Instead of figuring out how to get the double to a int the better question what are you trying to feed that needs an int value?
Naishadh Parmar
Ranch Hand

Joined: Jun 02, 2011
Posts: 95

the b.setPixel() method needs two ints, one X and other y
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.Integer error