"Swift Basics" was retired on May 31, 2020.

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

https://w.trhou.se/5stnss4arb is a link of my workspace i took a snapshot of this becouse is not working everytime

when i write a program in my workspace it say error the console, when i write javac in the command it says error and i am sure i wrote the program right, so i need help!!

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! I took the liberty of forking your workspace and taking a look around. You have a few syntax errors. Also, your class is named Introductions, but your file is named naasir.java. You may not do this and expect it to compile. The file also needs to be named Introductions.java.

You missed the import statement to use java.io.Console so when it gets to the line where it's making a new instance of this, it had no idea what you mean. Also, you miscapitalized String as string when setting up your main function. You typed string[] args but you meant to type String[] args. Yes, capitalization is critical. Finally, you have written System.printf, but you meant to write console.printf because the System class has no printf method. The printf method belongs to the Console class.

I've made another workspace with the changes required that you need to get it to compile using your current file names. You may take a look at it at this link.

Hope this helps! :sparkles:

no wonder you have alot of points and yes it did