// // Supporting material for lecture 14 // // MyMath calls // // private static methods // no constructor!! // public class Demo14b { public static void main(String[] args){ System.out.println(MyMath.diff(6,9)); System.out.println(MyMath.diff(9,6)); System.out.println(MyMath.max(5,MyMath.max(6,8))); System.out.println(Math.PI + " " + Math.E); // look, it's the Math stuff! // look, the . operator for selecting an attribute/instance-variable System.out.println(Math.pow(2,10)); System.out.println((int)Math.pow(2,10)); // now casting! } }