class Maths{
public int div(String x,String y)throws NumberFormatException,
ArithmeticException{
int result=0;
try{
int numa=Integer.parseInt(x);
int numb=Integer.parseInt(y);
result=numa/numb;
}catch(Exception e){
throw e;
}
return result;
}
}
public class yicahngbuhuo {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
if(args.length!=2){
System.out.println("程序运行出错!");
System.exit(1);
}
try{
Maths mm=new Maths();
System.out.println(mm.div(args[0],args[1]));
}catch(Exception e){
e.printStackTrace();
}
}
}