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("=========     =========");
    }
}

Check that all the {s have a } that pairs with it. First place to look would be where the error messages start.

It seems you don't have closing '}' for each opening '{' in your source. This is important since these braces define what code makes up each method.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.