Operators.java
1 |
public class Operators |
---|---|
2 |
{ |
3 |
public static void main2(String[] args) |
4 |
{ |
5 |
System.out.println("Testing P2J_Add(2, 3) = " + P2J_Add(2L, 3L)); |
6 |
System.out.println("Testing P2J_Concat('2', '3') = " + P2J_Concat("2", "3")); |
7 |
} |
8 |
|
9 |
public static Long P2J_Add(Long l1, Long l2) |
10 |
{ |
11 |
return l1 + l2;
|
12 |
} |
13 |
|
14 |
public static String P2J_Concat(String s1, String s2) |
15 |
{ |
16 |
return s1 + s2;
|
17 |
} |
18 |
} |
19 |
|