
/**
 * It demonstrates input facilities using stdio class.
 *
 * @author Ageenko
 */
public class Test4 {
    public static void main(String[] args) {
        int test;
        do {
            System.out.println("Input numbers, empty line to exit");
            String[] input;
            input = stdio.getLineTokens(); // read and parse a string
            if (input == null) break;

            for (int k = 0; k < input.length; k++) {
                Integer tmp = stdio.parseInteger(input[k]); // convert to int
                if (tmp != null) {
                    test = tmp.intValue();
                    System.out.println("Input is " + test);
                } else
                    System.out.println("Parameter " + input[k] + " is not an integer");
            }

        } while (true);
        System.out.println("Exiting");
        System.exit(0);
    }
}
