Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Objects (Retired) Meet Objects Welcome Back

Gerrit Verhaar
Gerrit Verhaar
17,742 Points

Error: cannot type quotes in java-repl on Mac

Trying to type in the line: String firstName "Craig" in workspace on a Mac fails, cause there is no way to type in a " or a ' in the console.

(in the same workspace I can edit a file and enter a quote there, so it's something to do with the console itself)

Ps: when I go to http://www.javarepl.com/console.html I get a similar problem, but there a return after a quote makes the quote visible. In the workspace console this doesn't work

4 Answers

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Hmmm...perhaps you are missing the equals:

String firstName = "Craig";
Gerrit Verhaar
Gerrit Verhaar
17,742 Points

Hi Craig, thanks for you reply. the equals doesn't solve the trick, neither does a space after the quotes.

I found my way through the course by typing in the commands in the files and then copy/paste to the console.

This is definetly a bug here. I am facing the same issue.

I am having the same problem. Any updates? Thank you! By the way can't paste anything on console either...so Gerritt solution is not working for me.