Przykład
public
static
void
main(
String
[] args) {
String
notClear1 =
null
, notClear2[] =
null
;
notClear1 = args[
0
];
notClear2[
0
] = args[
1
];
}
Rozwiązanie
Rozdziel deklarację zmiennych podstawowych i tablicowych.
public
static
void
main(
String
[] args) {
String
notClear1 =
null
;
String
[] notClear2 =
null
;
notClear1 = args[
0
];
notClear2[
0
] = args[
1
];
}