package nvoss.basicjava; /** * a French Hello World class and application */ public class FrenchHello extends Hello { /** * create a Hello instance * @param toWho a name for who we are saying hello to */ public FrenchHello(String toWho) { } /** * create a Hello instance */ public FrenchHello() { } /** * parle <> au monde */ public static void main(String[] args) { // this is implementation is cut-and-pasted from Hello.java Hello greeter = new Hello(); // args is a string array. The length of any array can be // returned via a field called "length" if (args.length == 0) { greeter.sayHello(); } else { int i; for(i=0; i < args.length; i++) { // set the addressee greeter.setWho(args[i]); // and send the greeting greeter.sayHello(); } } } }