Example
public
static
void
main(
String
[] args ) {
int
i =
0
;
for
( ; i < args.length ; ) {
System.out.println( args[ i ] );
i++;
}
}
Solution
Replace the
for
loop with a
while
loop.
public
static
void
main(
String
[] args ) {
int
i =
0
;
while
( i < args.length ) {
System.out.println( args[ i ] );
i++;
}
}