Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Basics Getting Started with Java Strings and Variables

David Richard
David Richard
4,879 Points

Output shows error of "illegal character" but can't figure out why

treehouse:~/workspace$ javac introductions.java
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
introductions.java:8: error: illegal character: '' console.printf("Hello, my name is Craig");
^
1 error

2 Answers

David Richard
David Richard
4,879 Points

Actually i figured it out. Somehow there was an extra ' written into the code. I could barely notice it which is what originally threw me off. Regardless to all that, really appreciate you responding.

Could be the type of quote symbols being used. Other than that, I don't think there is enough info to go off of if that's not the problem.