摘要: 1. public class Demo01 { public static void main(String[] args) { int sum=add(1,2); System.out.println(sum); public static int add(int a ,int b){ retu 阅读全文
posted @ 2022-01-06 18:47 Nnaaaa 阅读(29) 评论(0) 推荐(0)
摘要: 1.三元运算符 x ? y : z 如果x==true 这结果为y 否则结果为z string type = scroe < 60 ? " 不及格 " :" 及格 "; 2. 包机制 import 加入其他包 * 3.Java Doc 文档注释 author 作者名 version 版本号 sinc 阅读全文
posted @ 2022-01-06 16:43 Nnaaaa 阅读(28) 评论(0) 推荐(0)