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 trialpradeep choudhary
861 PointsWhat exactly is repl???
I have been wandering what exactly repl is and what is its use.Please let me know
1 Answer
Alexander Davison
65,469 PointsThe Java REPL is a command-prompt for Java, and REPL stands for Read-Evaluate-Print Loop. The REPL is for testing Java code, but not for creating complete programs. The reason REPL isn't good for big programs is because you can't save the code and it wasn't made to do that. If you wanted to create a large program, you should probably create a Java file. But if you just want to test something basic like printing out 1 + 1 then creating a file is meaningless because you probably don't want to save that code, you just want to know the answer. So, for small tests, use the REPL. For large tests or entire programs, use Java files. You will learn more about the Java REPL and Java files later in your course, and also, the more programming you do, the more you understand about which choice to use.
Hope this helps and happy coding! ~Alex
pradeep choudhary
861 Pointspradeep choudhary
861 PointsThanks man,you cleared my doubt.
Alexander Davison
65,469 PointsAlexander Davison
65,469 PointsNo problem! I love to help :)
annient
Courses Plus Student 1,708 Pointsannient
Courses Plus Student 1,708 PointsThanks for your explanation :) I was confused if I needed it for Eclipse or IntelliJ IDEA on my computer. Now all I have to do is to keep learning and will understand the choices later.
Alexander Davison
65,469 PointsAlexander Davison
65,469 PointsNo problem again :)