Příklad
public
static
void
main(
String
[] args ) {
String
notClear1 =
null
, notClear2[] =
null
;
notClear1 = args[
0
];
notClear2[
0
] = args[
1
];
}
Řešení
Rozdělte deklaraci základních proměnných a proměnných pole.
public
static
void
main(
String
[] args ) {
String
notClear1 =
null
;
String
[] notClear2 =
null
;
notClear1 = args[
0
];
notClear2[
0
] = args[
1
];
}