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 trialTim Eckert
7,011 PointsMissing Keys for Systemizer
Has something changed with Java JDK 8? I am unable to complete this assignment due to a missing key in my System.Properties...
Java Code:
package com.timothy;
import java.util.Set; import java.util.TreeSet;
public class Main {
public static void main(String[] args) {
// write your code here
System.out.printf("The class path is: %s %n",
System.getProperty("java.class.path"));
Set<String> propNames = new TreeSet<String>(System.getProperties().stringPropertyNames());
for (String propertyName : propNames) {
System.out.printf("%s is %s %n ",
propertyName,
System.getProperty(propertyName));
}
}
}
3 Answers
Craig Dennis
Treehouse TeacherGot it! Looks like you had added some whitespace to the front so it was " file.separator"
and not "file.separator"
. I updated the tests to be more lenient!
Thanks for your patience and sorry for the frustration!
Craig Dennis
Treehouse TeacherHey Tim Eckert !
Thanks for the ping! Do you have a key named file.separator
in your results?
Sorry for the delay and frustration! We'll get to the bottom of it!
Tim Eckert
7,011 PointsI do, its the 6th key.
file.separator is \
Tim Eckert
7,011 PointsTim Eckert
7,011 PointsThanks! That seemed to fix it.