Exemple #1
0
 public static void main(String[] args) {
   Rational half = new Rational(1, 2);
   try {
     System.out.println("Root of half is " + half.root());
   } catch (IllegalArgumentToSquareRootException e) {
     e.printStackTrace();
   }
 }