System.out.println("A random number is " + Math.random()); System.out.println("The square root of 2 is " + Math.sqrt(2.0));