int num=0;
try{
num = Integer.parseInt(args[0]);
}catch(NumberFormatException nfe){nfe.printStackTrace();
}