1 what is the scope of index in the application 2 using


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.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: 1 what is the scope of index in the application 2 using
Reference No:- TGS02937173

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)