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 Using your New Tools Multiple Strings

Michael whitney
Michael whitney
731 Points

Although I have checked at least ten times that the code is how it is in the video, I get 4 errors compiling it.

I get 4 errors when I compile the code and I can't see why. I get a couple of errors for Illegal characters and a couple for expected identifier?

Ken Alger
Ken Alger
Treehouse Teacher

Michael;

Welcome to Treehouse!

Can you post the code you are trying and I'm sure someone here on the forum will be able to help out.

Ken

2 Answers

David van Pelt
David van Pelt
2,058 Points

You probably did set the lines outside the function main. Make sure it's inside both { }.

1 - make sure that you type a String with capital S 2 - then inside brackets write double quotation not single quotation ( " " );
i think, these are errors