Skip to content
Advertisement

Command is Not Interpreting in Java [closed]

I have this block;

JavaScript

And when I execute it, nothing happens. It sometimes happens but mostly it doesn’t works. I also checked file system and there is nothing different too.

( InterruptedException is imported with import java.lang.InterruptedException. )

I tried and error is;

JavaScript

Advertisement

Answer

In line with OWASP, I made this to help in making commands more readable and also retrieving their output (once executed).

JavaScript

And then define the command cleanly:

JavaScript

And then execute:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement