Question: I have 2 java files: Test.java contains the main method and Calculate.java contains a sum method with 2 parameters ( num 1 , num 2

I have 2 java files: Test.java contains the main method and Calculate.java contains a sum method with 2 parameters ( num1, num2). if i want to use the sum method with 2 arguments (4 and 5) in my Test.java file. How would I call it

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 Programming Questions!