(String[] args)
| 13 | |
| 14 | public class Test { |
| 15 | public static void main(String[] args) { |
| 16 | /* |
| 17 | com.liuyi.Demo d = new com.liuyi.Demo(); |
| 18 | int result = d.sum(10,20); |
| 19 | System.out.println(result); |
| 20 | |
| 21 | com.liuyi.Demo d2 = new com.liuyi.Demo(); |
| 22 | int result2 = d2.sum(10,20); |
| 23 | System.out.println(result2); |
| 24 | |
| 25 | com.liuyi.Demo d3 = new com.liuyi.Demo(); |
| 26 | int result3 = d3.sum(10,20); |
| 27 | System.out.println(result3); |
| 28 | */ |
| 29 | |
| 30 | Demo d = new Demo(); |
| 31 | int result = d.sum(10,20); |
| 32 | System.out.println(result); |
| 33 | } |
| 34 | } |