M
morc
hi,
i keep gettin a number format exception :
java.lang.NumberFormatException: For input string: "245.0"
This is where the error is :
int iHigh = yCoord(4.2);
public int yCoord(double y){
y=350-(y*25);
int x = Integer.parseInt(Double.toString(y));
return x;
}
I can't figure out why this won't work. Can somebody please point me in
the right direction. It would be greatly appreciated.
Thanks alot
-morc
i keep gettin a number format exception :
java.lang.NumberFormatException: For input string: "245.0"
This is where the error is :
int iHigh = yCoord(4.2);
public int yCoord(double y){
y=350-(y*25);
int x = Integer.parseInt(Double.toString(y));
return x;
}
I can't figure out why this won't work. Can somebody please point me in
the right direction. It would be greatly appreciated.
Thanks alot
-morc