Tech
JShell: Java's Built-In Scratchpad for Trying Code Fast
Here's a familiar feeling. You want to test one small thing in Java — maybe how String.substring() behaves, or whether a regex pattern matches. So you create a file, write a class, add a main method, type System.out.println , compile, run. All that ceremony for a one-line answer.
JShell does away with the ceremony. It's a read-eval-print loop (REPL) that ships with the JDK since Java 9. You type Java code, press Enter, and see the result immediately. No class, no main method, no compil...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to