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 Perfecting the Prototype Parsing Integers

how do i get my code to compile in workspace?

How do i get my code to compile while I am working in workspace?

ParsingInts.java
String answerToLife = "42";

In a workspace or the challenge that this code relates to?

2 Answers

Arnold Adamson
Arnold Adamson
1,308 Points

javac ParsingInts.java perhaps ?

Bijay Sharma
Bijay Sharma
2,745 Points

Use a statement javac (filename).java in you console

For your current file the statement will be - javac ParsingInts.java