public class Main {
public static void main(String[] args) throws IOException {
String msg = "Hello ";
List<String> strings = new
ArrayList<String>(Arrays.asList(args));
try {
String s = strings.remove(0);
for (int i = 0; i >= 0; i++) {
msg += s.toCharArray()[i];
}
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println(msg);
main(strings.toArray(new String[0]));
} catch (IndexOutOfBoundsException e) {
System.out.println("Goodbye");
}
}
}
No tickets needed - can't make it anywat
--
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en.