Created
February 18, 2020 20:11
-
-
Save rokon12/38c2487b348445885bef8df83a83cbd4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Calculator { | |
public int add(int a, int b) { | |
return a + b; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you please look mine following one:
package java_practice;
import java.util.Scanner;
public class Caculator1 {
// long c = a + b;
// System.out.println("Total number for c is :" + c);
}
package java_practice;
public class Calculator {
public int add(int a, int b) {
int result=a+b;
return result;
}
}