課題:コマンドライン引数に負の値が含まれている場合に、独自の例外を生成するプログラムを作れ。

途中まで作ったのがありますので、それを元にお願いできますでしょうか?

import java.util.*;
class Kadai{
publicstatic voidmain(String args[]){a();}
static void a(){try{b();}
catch(Exception e){e.printStackTrace();}
}
static void b() throws ExceptionA{
try{c();}
catch(ExceptionB e){e.printStackTrace();}
}
static void c() throws ExceptionA,ExceptionB{
int a = Integer.ParseInt(args[0]);
if(a < 0){throw new ExceptionA("We have a -");}
else{throw new ExceptionB("We have a +");}
}}
class ExceptionA extends Exception{
public ExceptionA(String message){super(message);}
}
class ExceptionB extends Exception{
public ExceptionB(String message){super(message);}
}


前スレからですが、よろしくお願いいたします。