Import the project in Eclipse and Run as Java 8 Application
Alternatively we can run the program from command line using
javac Task1.java
cd ..
java nikiai.Task1
Provide the number of string and then the actual strings. Program would sort the string on basis of their lengths.