摘要:
数组、排序和查找 一维数组 三种初始化方式: 动态初始化(1) 数据类型 [] 数组名=new 数据类型 [大小]; int [] num =new int [10]; 可以 使用数组名.length获取数组长度 Scanner sc = new Scanner(System.in); for (i 阅读全文
摘要:
if等分支较简单就不举例了 Scanner sc = new Scanner(System.in); int month; int age; int hot_price = 60; int cold_price = 40; System.out.println("please enter month 阅读全文