The Java Playground
Java Playground Overview
The Playground is not an IDE, but it is a fantastic tool for anyone that wants to try out some code and see what it does.
In the Learner's Corner Learn and Practice sections, we have embedded the Java Playground to help you discover how certain features work without the heavy lift of creating an entire program. The Java Playground is great for developers, teachers, and students as they experiment with code snippets before integrating them into larger programs.
Tips for How to Use the Java Playground
- Run Button: The Run button runs the code and provides feedback into the console. With “Detailed output” turned on, you can see what each statement is doing even if you have not used output statements.
- Clear Button: The Clear button clears all of the lines of code.
- Samples Button: Under Samples, you will find code that demonstrates some of the newer features of Java.
- Share Button: The Share button provides you with a URL that you can use to come back to your work later or share your code with someone else, like a colleague or teacher.