Written problems
public static void main(String[] args) {
Here is a short sentence. ------- abracadabra.
public class HW6StaticMethods { public int pi; public static int psi = 5; public static int triple(int i) { return 3*i; } public int quadruple(int i) { return 4*pi; } public HW6StaticMethods(int i){ this.pi = i; } public static void main(String[] args){ HW6StaticMethods hw6 = new HW6StaticMethods(12); /*1*/ System.out.println(pi); /*2*/ System.out.println(psi); /*3*/ System.out.println(quadruple(6)); /*4*/ System.out.println(triple(7)); /*5*/ System.out.println(hw6.pi); /*6*/ System.out.println(hw6.psi); /*7*/ System.out.println(hw6.quadruple(6)); /*8*/ System.out.println(hw6.triple(7)); } }