|
Re: need help with illegal start of type error
|
Posted: Sep 28, 2009 3:16 AM
|
|
> oh and here's the code(the h's and p's are suppose to make > big letters out of smaller letters, but they wont show up > well on this) > /** > *MyInitials prints my initials > * > *@author Harrison Place > *@Version P2-1 > */ > class MyInitials > { > type > a > ; > * public class MyInitials{a > * public static void main(String[] args){// > * {//main method beginning > * System.out.print("My name is Harrison Place"); > * System.out.printIn("and my initials are:\n\n"); > * > * System.out.println("HHHH HHHH > PPPPPPPPPPPP"); > * System.out.println("HHHH HHHH PPPP > PPPP"); > * System.out.println("HHHH HHHH PPPP > PPPP"); > * System.out.println("HHHH HHHH PPPP > PPPP"); > * System.out.println("HHHHHHHHHHH PPPPPPPPPPPP"); > * System.out.println("HHHHHHHHHHH PPPPPPPPPPPP")' > * System.out.println("HHHH HHHH PPPP"); > * System.out.println("HHHH HHHH PPPP"); > * System.out.println("HHHH HHHH PPPP"); > * System.out.println("HHHH HHHH PPPP"); > * }ends main(public static void) > * }ends class(public)
If this is your code in its entirety, your Syntax is incorrect. Google "Java Hello World"
Replace each System.out.println("Hello, World"); with your HHH stuff. Copy and paste the lines below Hello World - you will then get the idea of what System.out.println() does and you will also understand the structure of a Java Class.
|
|