摘要: public class Test{ public static void main(String[] args) { int x = 1; System.out.println("value is"+((x>0)?99:9.9)); // 99.0 } } 以两个数中更高的精度输出 阅读全文
posted @ 2022-09-22 12:29 YaosGHC 阅读(38) 评论(0) 推荐(0)
摘要: 同程-笔试 public class Test extends Super{ // public Integer getLength(){return 8;}; public Long getLength(){return new Long(5);} // 这里的Long返回值会报错 public 阅读全文
posted @ 2022-09-22 10:00 YaosGHC 阅读(32) 评论(0) 推荐(0)