Do the next application and answer the questions:
1 /** Print a friendly greeting. */
2 public static void main(String[] args) {
3 int index;
4 for(index = 0; index < args.lenght; index = index + 1) { 5 System.out.println("Hello, " + args[index] + "!");
6}
7}
Questions:
1. What is the scope of index in the application?
2. Using this kind of loop, print the numbers 1 trough 10.