O programa abaixo está gerando aquele erro ali embaixo, não entendi bem por que do erro, queria entender como interpretar erros de java…
vlw por enquanto…
import java.lang.String;
import java.lang.Integer;
public class Exercicio4
{
public static void main (String args[])
{
String strA, strB;
int intA, intB, intC;
strA = args[0];
strB = args[1];
intA = Integer.parseInt (strA);
intB = Integer.parseInt (strB);
System.out.println (strA + strB);
System.out.println (intA + intB);
}
}
Executei ele em prompt de comando.
D:\Aulas\Programas008-07-31>java Exercicio4
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
1
at Exercicio4.main(Exercicio4.java:11)
flw