the fastest way would be directly in the jdkNo it isn't. Asking for it to be included in the JDK implies a wait of at least 18 months if you're lucky, and a very probable refusal if you're not, i.e. an infinite way. Nothing fast about either of those. The fastest way is undoubtedly to download and install JShell or one of its many cognates. Or use the built-in script engine.
boskop wrote:Although you didn't mean it that way that statement exactly sums it up.
I know, writing a Java Programm that's doing this is very easy.
So what do you thinkt?Write it yourself.