I need some help with compiling a simple java program using javac.
So I have these 2 files that were given to me by my teacher:
Robot.java
class Robot {
String name;
int numLegs;
float powerLevel;
Robot(String name) {
this.name = name;
numLegs = 2;
powerLevel = 2.0f;
}
Robot() {
this(Standard Model);
}
void talk(String phrase) {
if (powerLevel = 1.0f) {
System.out.println(name + says + phrase);
powerLevel -= 1.0f;
} else {
System.out.println(name + is too weak to talk.);
}
}
void charge(float amount) {
System.out.println(name + charges.);
powerLevel = powerLevel + amount;
}
}
RobotWorld.java
class RobotWorld {
public static void main (String[] args) {
Robot c3po = new Robot("C3PO");
c3po.talk("'Hello, Java!'");
}
}
When I try to compile it by typing "javac RobotWorld.java" into my command prompt, it just returns a bunch of errors. How can I fix this? I have JDK 8 installed.

=instead of==, and an invalid constructor. Was your assignment to fix the errors? Since it clearly contains incorrect syntax.