• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.Integer error

 
Naishadh Parmar
Ranch Hand
Posts: 95
C++ Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 95
C++ Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the b.setPixel() method needs two ints, one X and other y
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic