摘要: 一、 String[] abc = new String[3]{"a","b","c"}; for (String str : abc){ System.out.println(str); //这个地方的冒号就是遍历abc的集合,取出每一个元素 } 二、三元运算符boolean?true的内容:fa 阅读全文
posted @ 2020-11-13 07:38 Demo4 阅读(339) 评论(0) 推荐(0) 编辑