Why main method is static?
Answers
Answered by
1
The Java Main Method. In Java, you need to have a method named main in at least one class. The following is what must appear in a real Java program. public static void main(String [ ] args) { UrRobot Karel = new UrRobot(1, 1, East, 0); // Deliver the robot to the origin (1,1), // facing East, with no beepers.
Similar questions