Main.java:1: error: class MoveRobot is public, should be declared in a file named MoveRobot.java
public class MoveRobot {
^
Main.java:6: error: cannot find symbol
public static void moveRobot(Robot robot, int toX, int toY) {
^
symbol: class Robot
location: class MoveRobot
Main.java:3: error: cannot find symbol
moveRobot(new Robot(Robot.Direction.UP, 5, 10), -2, 8);
^
symbol: class Robot
location: class MoveRobot
Main.java:3: error: package Robot does not exist
moveRobot(new Robot(Robot.Direction.UP, 5, 10), -2, 8);
^
Main.java:9: error: cannot find symbol
case LEFT: robot.turnRight(); break;
^
symbol: variable LEFT
location: class MoveRobot
Main.java:10: error: cannot find symbol
case RIGHT: robot.turnLeft(); break;
^
symbol: variable RIGHT
location: class MoveRobot
Main.java:11: error: cannot find symbol
case DOWN: robot.turnLeft(); robot.turnLeft(); break;
^
symbol: variable DOWN
location: class MoveRobot
Main.java:19: error: cannot find symbol
case LEFT: robot.turnLeft(); break;
^
symbol: variable LEFT
location: class MoveRobot
Main.java:20: error: cannot find symbol
case RIGHT: robot.turnRight(); break;
^
symbol: variable RIGHT
location: class MoveRobot
Main.java:21: error: cannot find symbol
case UP: robot.turnLeft(); robot.turnLeft(); break;
^
symbol: variable UP
location: class MoveRobot
Main.java:30: error: cannot find symbol
case UP: robot.turnRight(); break;
^
symbol: variable UP
location: class MoveRobot
Main.java:31: error: cannot find symbol
case DOWN: robot.turnLeft(); break;
^
symbol: variable DOWN
location: class MoveRobot
Main.java:39: error: cannot find symbol
case UP: robot.turnLeft(); break;
^
symbol: variable UP
location: class MoveRobot
Main.java:40: error: cannot find symbol
case DOWN: robot.turnRight(); break;
^
symbol: variable DOWN
location: class MoveRobot
14 errors