import java.io.*; class ecgr1_modif { public static void main(String args[]) { double a=0, b=0, x; if(args.length==2) { a = (Double.valueOf(args[0])).doubleValue(); b = (Double.valueOf(args[1])).doubleValue(); } try{ System.out.println(" x=" + -b/a); }catch(ArithmeticException e){System.out.println("Coeficient nul!!!");} } }