My issue is that after public static void Head() { each of the following sets is highlighted red for an illegal start expression error. I've tried moving the bracketts around removing words like static or public. (I'm 3 classes into java). I just need help in getting that issue to dissapear. the public static head, works fine and can be seen in the output. any ideas?
/*
* Justin Towle
* COS160
*/
/**
*
*
*/
public class Robot {
public static void main(String[] args) {
Head();
Neck();
Body();
legs();
feet();
}
public static void Head() {
System.out.println(".--------. ");
System.out.println("| o o |");
System.out.println("| < |");
System.out.println("| - - - |");
System.out.println("'--------' ");
public static void Neck() {
System.out.println(" | | ");
System.out.println(" | | ");
public static Body() {
System.out.println("#########");
System.out.println("#########");
System.out.println("#########");
System.out.println("#########");
System.out.println("#########");
System.out.println("#########");
System.out.println("#########");
System.out.println("#########");
System.out.println("#########");
System.out.println("#########");
public static void legs() {
System.out.println(" | | | | ");
System.out.println(" | | | | ");
System.out.println(" | | | | ");
System.out.println(" | | | | ");
System.out.println(" | | | | ");
System.out.println(" | | | | ");
public static void feet() {
System.out.println("========= =========");
}
}