摘要:
小练习: public class test1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("请输入当前机票的原价"); int ticket = 阅读全文
摘要:
方法:Play(); amateur:业余 ambiguous:模棱两可的 parallel:平行的,相似的 annual:每年的 ancient: brief: 阅读全文
摘要:
debate:讨论 transaction:交易 translate:翻译 阅读全文
摘要:
操作系统: 现代的计算机系统主要是由一个或者多个处理器,主存,硬盘,键盘,鼠标,显示器,打印机,网络接口及其他输入输出设备组成。 一般而言,现代计算机系统是一个复杂的系统。 其一:如果每位应用程序员都必须掌握该系统所有的细节,那就不可能再编写代码了(严重影响了程序员的开发效率:全部掌握这些细节可能需 阅读全文
摘要:
ARR数组: public class Arr { public static void main(String[] args) { int[] arr = {1,2,3,4}; int sum = 0; for (int i = 0; i < arr.length; i++) { System.o 阅读全文
摘要:
for循环: public class For { public static void main(String[] args) { int sum = 0; for (int i = 1 ; i <= 100 ; i++){ if (i % 2 ==0){ sum = sum + i; } } S 阅读全文
摘要:
三元运算符: public static void main(String[] args) { int p1 = 150; int p2 = 210; int p3 = 165; int max = p1 > p2 ? p1 : p2; int max2 = max > p3 ? max : p3; 阅读全文
摘要:
隐式转换 1、byte<short<int<long<float<double 2、计算时,byte,short,char转换为int类型。 3、小的和大的一起计算,转换为大的。 阅读全文