public void getValue() { System.out.println("enter first digit"); c.value1 = m.op.nextInt(); System.out.println("enter second digit"); c.value2 = m.op.nextInt(); }