| Author |
Int cannot be dereferenced
|
Mark Kaichou
Greenhorn
Joined: Feb 13, 2012
Posts: 2
|
|
I've been spending hours and hours trying to figure what have I done wrong to no avail, I've spent a load of time online trying to figure it out but I still can't!!!
Error's at line 154 :/
|
 |
fred rosenberger
lowercase baba
Bartender
Joined: Oct 02, 2003
Posts: 9948
|
|
|
topTiming is declared as an int - a primitive type. Therefore, it doesn't have a length.
|
Never ascribe to malice that which can be adequately explained by stupidity.
|
 |
Jeff Verdegan
Bartender
Joined: Jan 03, 2004
Posts: 5873
|
|
What would you expect that to mean? Primitives (byte, char, short, int, long, float, double, boolean) are not objects and do not have member variables or methods. They're just simple values. So you cannot do somePrimitive.something.
|
 |
Mark Kaichou
Greenhorn
Joined: Feb 13, 2012
Posts: 2
|
|
|
Ahhhhh, I see, silly me, thanks for the prompt reply guys!
|
 |
Lalit Mehra
Ranch Hand
Joined: Jun 08, 2010
Posts: 369
|
|
|
toptiming isn't an array ... you can't have length for primitive datatypes ...
|
http://plainoldjavaobject.blogspot.in
|
 |
 |
|
|
subject: Int cannot be dereferenced
|
|
|