POLAYOR

2022年10月21日

学校Java Week6

摘要: Week6 W6L1 Array // create an Array int [] myArray; myArray = neew int[5]; // 2D Array int[][] a = new int[3][5]; // 3 rows, 5 columns Arrays + For Lo 阅读全文

posted @ 2022-10-21 14:42 POLAYOR 阅读(19) 评论(0) 推荐(0) 编辑

2022年10月11日

学校Java Week5

摘要: Week5 W5L1 Review Control Flow Condition Loops counter Loops For loops Does the exact same thing with less code for (int i = 0; i < 10; i++) // initia 阅读全文

posted @ 2022-10-11 21:43 POLAYOR 阅读(46) 评论(0) 推荐(0) 编辑

2022年10月8日

Java数组

摘要: Java数组 数组的定义 相同类型数据的有序集合 相同类型的若干个数据 通过下标访问 变量的类型 变量的名字 = 变量的值; public class Array { public static void main(String[] args) { int[] nums; //声明 int nums 阅读全文

posted @ 2022-10-08 23:15 POLAYOR 阅读(15) 评论(0) 推荐(0) 编辑

2022年9月29日

学校Java Week4

摘要: Week4 W4L1 三元运算符 (ternary operator) public static void main(String[] args) { boolean isCar = true; boolean wasCar = isCar ? true : false; System.out.p 阅读全文

posted @ 2022-09-29 17:14 POLAYOR 阅读(15) 评论(0) 推荐(0) 编辑

Java方法

摘要: Java方法 一个方法只完成一个功能,利于后期拓展 例如: public class Methods { public static void main(String[] args) { } public static int add(int a, int b) { int result = 0; 阅读全文

posted @ 2022-09-29 16:02 POLAYOR 阅读(9) 评论(0) 推荐(0) 编辑

2022年9月22日

Java流程控制

摘要: Java流程控制 IO流:输入输出流 Scanner 创建对象:Scanner scanner = new Scanner(System.in); 用hasNext()与hasNextLine()判断是否有输入数据 使用next()与nextLine()方法接收数据:... = scanner.ne 阅读全文

posted @ 2022-09-22 23:37 POLAYOR 阅读(14) 评论(0) 推荐(0) 编辑

学校Java Week3

摘要: Week3 W3L1 public static void main(string[] args) { System.out.println("hello world"); // ";"很重要 System.out.println(10+5); } Variables Stored in RAM p 阅读全文

posted @ 2022-09-22 20:41 POLAYOR 阅读(14) 评论(0) 推荐(0) 编辑

2022年9月15日

Typora用法

摘要: Typora用法 添加数学公式 $$+回车 $$ \begin{array}{c c} 1 & 1\ 3 & 3 \end{array} $$ 阅读全文

posted @ 2022-09-15 10:17 POLAYOR 阅读(9) 评论(0) 推荐(0) 编辑

2022年9月14日

CSS盒子属性(前半部分缺失)

摘要: CSS盒子属性 边距 内边距:padding 外边距:margin 让盒子水平居中: margin: 0 auto; 父元素与子元素外边距合并 添加overflow:hidden属性 <title>嵌套块元素坍塌</title> <style> .father { margin: 30px; bac 阅读全文

posted @ 2022-09-14 20:24 POLAYOR 阅读(18) 评论(0) 推荐(0) 编辑

Java基础语法

摘要: Java基础语法 注释 //单行注释 /* 多行注释 */ JavaDoc(以后学习) 标识符 所有标识符都应以字母,$ 或 _ 开始 首字符之后可以是字母,$ ,_ 或数字 数据类型 Java是强类型语言,变量先定义后使用 整数: byte short int long(在数字后加L,e.g. 1 阅读全文

posted @ 2022-09-14 19:44 POLAYOR 阅读(15) 评论(0) 推荐(0) 编辑

导航