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 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
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.