困扰了我好久的问题,怎么区分运算符和连接符- public class Adc {
- public static void main(String[] args) {
- int a = 3, b = 4, c = 5, d = 6;
- System.out.println(a + b + c + d);
- System.out.println("************");
- System.out.println(a + b + "," + c + b)
- System.out.println("************");
- System.out.println(a + b + 'c' + d);
- System.out.println("************");
- }
- }
复制代码 |
|