All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kg.apc.cmdtools.HelloWorldTool Maven / Gradle / Ivy

The newest version!
package kg.apc.cmdtools;

import java.io.PrintStream;
import java.util.ListIterator;

public class HelloWorldTool extends AbstractCMDTool {

    protected int processParams(ListIterator args) throws UnsupportedOperationException, IllegalArgumentException {
        System.out.println("Hello, World!");
        System.out.println("Today's classpath is: " + System.getProperty("java.class.path"));
        return 0;
    }

    protected void showHelp(PrintStream os) {
        os.println("This tool just prints 'Hello, World!'");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy