Java:
package bool;
public final class Boolsch1 {
private Boolsch1(){}
public static void main (String[] args) {
int a=0, b=0;
boolean ma=false,
mb=false;
a = Integer.parseInt(args[0]);
b = Integer.parseInt(args [1]);
if (a>b) ma= true; else ma= false;
if (b>a) mb= true; else mb= false;
if (ma == true) System.out.println("a>b");
if (mb == true) System.out.println("b>a");
}
}
Wenn ich das in Eclipse ausführen will bekomme ich die Meldung:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at bool.Boolsch1.main(Boolsch1.java:11)
Was mache ich falsch??