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 Local Development Environments Exploring Your IDE Clean up this mess

Wajid Mohammed
Wajid Mohammed
5,698 Points

whats wrong with my Java Messy Code?? Please help to figure it out

I am stuck in the Messy Code Challenge. In fact I am stuck in step 1 itself after copying the code to my local IDE. Problem is when i copied the original messy code as instructed in step 1 of challenge and then did Check Work its not moving anywhere. So, i attempted to fix the code in step and thought it will be fine but still its not. This looks fine in IDE and runs but stuck in this Challenge. Desperate helped needed to help me forward.

Anyone please.

Thanks, Wajid

Messy.java
import java.util.Arrays;
import java.util.List;

public class Messy {
    public static void main(String[] args) {
        System.out.println("one");
        System.out.println("two");
        System.out.println("three");
        System.out.println("four");
        System.out.println("five");
        //Please comment out this line and
        //this line as well with a hotkey that does multi - line commenting
        List<String> numberWords = Arrays.asList("six", "seven", "eight", "nine");
        for (String numberWord : numberWords) {
            // Use the sout shortcut to write out numberWord;
            System.out.println(numberWord);
        }
    }
}
results.txt

4 Answers

romeo draven
romeo draven
3,723 Points

Hi Wajid,

There seems to be a bug or error on TeamTreehouse's side. The support team are aware of the issue and we'll just have to skip the challenges until the problem is fixed.

Romeo

Wajid Mohammed
Wajid Mohammed
5,698 Points

Hi Romeo, many thanks for your response. I thought I was going crazy!! :) I am not able to skip the Challenge and it wont let me go forward. Any clue how to skip this challenge and proceed with the course further?

Thank you, Wajid

romeo draven
romeo draven
3,723 Points

No Problem Wajid. I'd been scratching my head all morning wondering why my code wasn't working. Above where the question for the challenges are you'll see a few circles with symbols such as "<>", a tick or a silhouette of a person. The person symbol is the challenge or video you are currently on, just click the next circle to the right to continue. If its the last circle to the right then use the library to find the next course after the one you are doing.

Romeo

Wajid Mohammed
Wajid Mohammed
5,698 Points

Thank you Romeo and you have saved my day. All the best :)

Wajid