JDoodle

Easy and Quick way to compile and run Java Code Online

Java
Version - JDK 1.8.0_66
Project Name :
Your Code ...
import java.util.List; import java.util.ArrayList; import java.util.Arrays; public class MyClass { public static void main(String args[]) { if(args==null || args.length<1) { System.out.println("Please enter some input in Input Arguments\nEg : one two three"); return; } List<String> lst = new ArrayList<String>(); lst.addAll(Arrays.asList(args)); System.out.println("List :" + lst); } }
External Libraries ...
Input Arguments (args of Main Method)...
Interactive mode :
Stdin Inputs...
Result...
compiled and executed in second(s)
Hint - Press Ctrl+Space or Alt+Space for Auto Complete.
Your valuable inputs will help us improve this site
please give your comments. Thanks.
Which language would you like to see next in JDoodle?
Comments/Suggestions/Inputs...
Please Login to use this option....