Problems with error during compilation
Most times when i try to compile this is what i do get,i am a complete newbie and i will like to know what i am doing that is wrong.Most of the tie the errors are always cannot find symbol.Below is an example:
C:\Documents and Settings\User\My Documents\Bicycle.java:19: cannot find symbol
symbol : method printIn(java.lang.String)
location: class java.io.PrintStream
System.out.printIn("cadence:"+cadence+"speed:"+speed+"gear:"+gear);
^
1 error
Tool completed with exit code 1
This is the program i tried to run
import java.lang.*;
class Bicycle{
int cadence=0;
int speed=0;
int gear=1;
void changeCadence(int newValue) {
cadence=newValue;
}
void changeGear(int newValue) {
gear=newValue;
}
void speedUp(int increment) {
speed=speed+increment;
}
void applyBrakes(int decrement) {
speed=speed-decrement;
}
void printStates() {
System.out.printIn("cadence:"+cadence+"speed:"+speed+"gear:"+gear);
}
}

