Here is my Code...Im just confused on how to make a Driver class for this. Any help would be great! I know there shouldnt be a Main but it was the only way i could test my drawing on eclipse since i dont really get how to use a driver.

public class AsciiArt 
{
    public static void main(String[] args)
    {
        int number = 77;
        int star =14;


    //** Line
        for (int i = 76; i<=number; i++)
        {
            System.out.println();
            for(int j=1; j<=number; j++)
            {
                System.out.print("*");
            }

        }
        System.out.print("\n");

    //First line    

        System.out.print("  |||||");
    for(int i = 0; i<=4; i++)
    {
        System.out.print("0");
    }
    for(int i = 0; i<=13; i++)
    {
        System.out.print("|");
    }
    for(int i = 0; i<=4; i++)
    {
        System.out.print("0");
    }
    for(int i = 0; i<=10; i++)
    {
        System.out.print("|");
    }
    for(int i = 0; i<=16; i++)
    {
        System.out.print("8");
    }
    for(int i = 0; i<=1; i++)
    {
        System.out.print("|");
    }
    for(int i = 0; i<=13; i++)
    {
        System.out.print("p");
    }
        System.out.print("|");




    //Second line
    System.out.print("\n");
    System.out.print("  |||");
    for(int i = 0; i<=8; i++)
    {
        System.out.print("0");
    }
    for(int i = 0; i<=9; i++)
    {
        System.out.print("|");
    }
    for(int i = 0; i<=8; i++)
    {
        System.out.print("0");
    }
    for(int i = 0; i<=8; i++)
    {
        System.out.print("|");
    }
    for(int i = 0; i<=15; i++)
    {
        System.out.print("8");
    }
    for(int i = 0; i<=1; i++)
    {
        System.out.print("|");
    }
    for(int i = 0; i<=14; i++)
    {
        System.out.print("p");
    }



    //Third Line
        System.out.print("\n");
        System.out.print("  ||");
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=4; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=7; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=4; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=7; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=7; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=1; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=1; i++)
        {
            System.out.print("p");
        }
        for(int i = 0; i<=5; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=0; i++)
        {
            System.out.print("p");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }

        //Fourth Line
        System.out.print("\n");
        System.out.print("  |");
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=5; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=16; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=1; i++)
        {
            System.out.print("p");
        }
        for(int i = 0; i<=5; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=0; i++)
        {
            System.out.print("p");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }

        //Fifth Line
        System.out.print("\n");
        System.out.print("  ");
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=14; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=5; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=0; i++)
        {
            System.out.print("p");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=0; i++)
        {
            System.out.print("p");
        }
        for(int i = 0; i<=7; i++)
        {
            System.out.print("|");
        }

        //Sixth Line
        System.out.print("\n");
        System.out.print("  ");
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=13; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=11; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=0; i++)
        {
            System.out.print("p");
        }
        for(int i = 0; i<=7; i++)
        {
            System.out.print("|");
        }

        //Seventh Line

        System.out.print("\n");
        System.out.print("  ");
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=12; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=10; i++)
        {
            System.out.print("p");
        }
        for(int i = 0; i<=7; i++)
        {
            System.out.print("|");
        }

    //Eighth Line
        System.out.print("\n");
        System.out.print("  ");
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=11; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=22; i++)
        {
            System.out.print("|");
        }

    //Ninth Line
        System.out.print("\n");
        System.out.print("  |");
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=5; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=6; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=11; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=23; i++)
        {
            System.out.print("|");
        }

    //Tenth Line
        System.out.print("\n");
        System.out.print("  ||");
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=4; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=7; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=4; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=2; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=11; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=3; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=24; i++)
        {
            System.out.print("|");
        }

    //Eleventh Line
        System.out.print("\n");
        System.out.print("  |||");
        for(int i = 0; i<=8; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=9; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=8; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=10; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=7; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=22; i++)
        {
            System.out.print("|");
        }

    //Twelfth Line
        System.out.print("\n");
        System.out.print("  |||||");
        for(int i = 0; i<=4; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=13; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<=4; i++)
        {
            System.out.print("0");
        }
        for(int i = 0; i<=10; i++)
        {
            System.out.print("|");
        }
        for(int i = 0; i<11; i++)
        {
            System.out.print("8");
        }
        for(int i = 0; i<=21; i++)
        {
            System.out.print("|");
        }

    //** Line


        for (int i = 76; i<=number; i++)
        {
            System.out.println();
            for(int j=1; j<=number; j++)
            {
                System.out.print("*");
            }

        }

}
}

I'm also confused of what your code is supposed to do. You need to explain what your class is supposed to be doing, and how it is being used (under any circumstance). An example of input-output would be a very good start.

Some comments on your current codes...

Very important, comment! Your code has no comment at all!!! That's very bad habit of coding.

Line 5, what does number variable do in your code? You could simply get rid of it and use a constant in the loop control instead.

Line 6, what does star variable do? What is the purpose of having it in there?

Lines 10~19, if you are going to print 2 lines of asterisks (*), you should simply use the loop control variable from 1 to 2 or similar. You do not need to include the number variable in the loop control. The reason is that the number of lines is independent from the number of asterisks.

The rest, you could simply use System.out.println() for all instead of loops. It is more readable instead of many loops like that. Why? Because all of them are hard-coded anyway. If it is going to be too long, you could still cut it to 2 or 3 lines of System.out.print() and System.out.println()...

//First line
System.out.println("  |||||00000||||||||||||||00000|||||||||||88888888888888888||pppppppppppppp|");

I figured it out but our instructions were to use for loops and no S.O.P statements that just print out the picture

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.