So for my Introduction to Java class, I am suppose to create a gingerbread man with ASCII. This is the very first assignment, so the class has only covered only println statments so far. I'm using the Eclipse IDE for Java Developers on OSX 64-bit.
This is what I have right now:
import acm.program.*;
public class ASCIIArtProgram extends ConsoleProgram {
public void run() {
println(" _ ");
println(" _(")_ ");
println("(_ . _)");
println(" / : \ ");
println("(_/ \_)");
}
}
Some reason I'm getting errors on line 7. It keeps changing the semi-colon into a colon.
Errors:
Syntax error on token "_", invalid AssignmentOperator
String literal is not properly closed by a double-quote
The program is suppose to output this:
_
_(")_
(_ . _)
/ : \
(_/ \_)
I'm confused what I'm doing wrong.