摘要: 例题如下 public static void main(String[] args) { char x = 'x'; int i = 10; System.out.println(true? x : i); System.out.println(true? 'x' : 10); } 答案是,120 阅读全文
posted @ 2020-01-09 17:27 可以看看你胖次吗 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 首先看一道典型题 public class Test { static int x, y, z; static { int x = 5;//局部变量 x--; } static { x--; } public static void main(String[] args) { System.out. 阅读全文
posted @ 2020-01-09 17:14 可以看看你胖次吗 阅读(540) 评论(0) 推荐(0) 编辑
Live2D