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 Java Objects (Retired) Harnessing the Power of Objects Methods and Constants

Broderic Crowe
Broderic Crowe
1,549 Points

General Question: What does repl do exactly?

Is the purpose of the repl only to access certain parts of the code we've already written? What exactly does this help us do in the long run?

any general info would be awesome:)

2 Answers

Grigorij Schleifer
Grigorij Schleifer
10,365 Points

A readโ€“evalโ€“print loop (REPL), also known as an interactive toplevel or language shell, is a simple, interactive computer programming environment that takes single user inputs (i.e. single expressions), evaluates them, and returns the result to the user; a program written in a REPL environment is executed piecewise.

Mike Atkinson
Mike Atkinson
6,882 Points

Yes, it allows you to type in your program line by line. It is very useful for learning, because it will give you instant feedback on the line you just put in. It's good for playing around with a new idea you had, or maybe just testing how something works.