Question: I am trying to do a calculator using Java but still I dont understand very well the class and some of the cod can anyone

I am trying to do a calculator using Java but still I dont understand very well the class and some of the cod can anyone fix what I did here between the main and other class The calculator is basic add between two numbers and ask user to enter the first and second number and print the results.,,,
 I am trying to do a calculator using Java but still
I dont understand very well the class and some of the cod

project sr Calculator dT Project project-/deaProjects/project H Main import java.utit.Scanner; idea n out 3public class Calculator // atributes fields int numberl int number2 int addition int subtract: int division int sultiplicatin: int result: Main th External Libraries dP Scratches and Consoles 12 1/ behavior, sethods public void add) result - numberl + number2: Scanner sc new Scanner(System.in): System.out.printIn"Enter number1: int numberl sc.nextline): System,out.print In( Enter number2: " 23 System.out.printIn("That is Equal to: "result)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!