Originally posted by Nick George: I have to assume this is Eclipse, and not the rules of Java, but I could be wrong.
The constructor for BoundingBox takes a "Parcel" ( this ), and three floats. The constructor for Box takes three floats. The method setLocation takes three floats.
lines one and three work. Line two consistently tells me that the constructor Box( int , int , int ) does not exist. new Box( 1 , 1 , 1f ) works.
Whats the deal with that?
[edited subject so makes sense in JiG forum. was: "Weird behavior in Eclipse."]
[ November 29, 2005: Message edited by: Jeanne Boyarsky ]
Does BoundingBox have a constructor that takes three ints instread of three floats? Is there a setLocation() that takes three ints instead of three floats? Does Box have a constructor that takes three ints instead of three floats? I'd bet the answers are: yes, yes, no.
None of those are floats. Chances are you're calling versions that use an int rather than a float. In Java 1 is an int, 1F is a float. 2 is an int, 2F is a float, etc.