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
Randy Bobandy
2,410 PointsSo when I load "java-repl" , it loads fine and br. Then when I enter " load PezDispenser.java it says not a statement???
This is the Error list i get : ^
ERROR: not a statement
load PezDispenser.java;
^
ERROR: ';' expected
load PezDispenser.java;
^
ERROR: not a statement
load PezDispenser.java;
^
java> load PezDispenser.java
I seem to have a lot of problems with repl....
1 Answer
Ken Alger
Treehouse TeacherRandy;
Welcome to Treehouse!
Inside the java-repl interface, to load a source file you need to include a colon prior to your load command. Something like:
:load PezDispenser.java
Should do the trick.
Ken
Randy Bobandy
2,410 PointsRandy Bobandy
2,410 PointsI saw that about 5 minutes after I posted this thread ;/ , Thank you for the help :O)