Thursday, February 12, 2015

Use Three.java in a program



UseThree.java

public class UseThree
{

    public static void main(String[] args)
{
        System.out.print("Hi, ");
        System.out.print(args[2]);
        System.out.print(", ");
        System.out.print(args[1]);
        System.out.print(", and ");
        System.out.print(args[0]);
        System.out.println(".");
    }

}

No comments:

Post a Comment