Welcome to the Treehouse Community
Looking to learn something new?
Angella McCoy3,218 Points
Unable to run program in Eclipse
When I attempt to run TreeStory.java in Eclipse, I get the following error: Exception in thread "main" java.lang.NullPointerException at TreeStory.main(TreeStory.java:17)
I am not sure how to make this code work in an editor, outside of the Treehouse workspace. Can someone help?
Fahad Mutair10,359 Points
you can't use console.printf in Eclipse you have to use System.out.println and scanner instead