Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tester
- {
- public static void main(String[] args)
- {
- Calculation calc = new Calculation();
- System.out.print(calc.addition(2,7));
- }
- }
- class Calculation
- {
- int addition(int a, int b)
- {
- return a + b;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement