摘要:
public class ScannerDemo { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.println("请输入您的金钱"); // s.hasNext() 阅读全文
摘要:
public class demo3 { public static void main(String[] args) { // 增强for循环,也叫forEach遍历 <=> 数组或者集合对象的语法糖 int[] arr = {1,2,3,4,5,6}; // 最笨的方法 for(int i = 阅读全文