wiki:SyottoEx
Last modified 9 years ago Last modified on 2008-10-07 21:14:02
import fi.jyu.mit.ohj2.Syotto;

/**
 * A program which asks user's name and prints it.
 * It asks for user's age too and prints it.
 */

public class Printer {

    public static void main(String[] args) {

        String name = Syotto.kysy("Give your name");
        System.out.println("Your name is " + name);

        int age = Syotto.kysyInt("Give your age");
        System.out.println("Your age is " + age);

    }

}