Java Eclipse homework. I need help coding this

Project… Cheating on Your Arithmetic Assignment

Create a new project called ArithmeticAssignment with a class called Tester that will calculate
and print the results of the following arithmetic problems:

79 + 3 * (4 + 82 –68) – 7 +19
(179 +21 +10) / 7 + 181
10389 * 56 * 11 + 2246

The printout should look like the following:

79 + 3 * (4 + 82 - 68) - 7 + 19 = 145
(179 + 21 + 10) / 7 + 181 = 211
10389 * 56 * 11 + 2246 = 6401870

Respuesta :

public class ArithmeticAssignment {

   public static void main(String[] args) {

       Tester test = new Tester();

       test.printTester();

   }

   

}

class Tester{

   Tester(){

       

   }

   void printTester(){

       int i1 = 79 + 3 * (4 + 82 -68) - 7 +19;

       int i2 = (179 +21 +10) / 7 + 181;

       int i3 = 10389 * 56 * 11 + 2246;

       System.out.println(i1);

       System.out.println(i2);

       System.out.println(i3);

   }

}

I think this is what you wanted. I hope this helps!