摘要:
类与对象 1.回顾方法 package com.lin.study.oop.demo01;import java.io.IOException;public class Demo01 { public static void main(String[] args) { } /* 修饰符 返回 阅读全文
posted @ 2021-10-06 22:14
木木9_9
阅读(394)
评论(0)
推荐(0)
摘要:
数组 1. 数组的声明与创建 tip: 获取数组的长度: array.length package com.lin.study.array;public class ArrayDemo01 { public static void main(String[] args) { int[] nums; 阅读全文
posted @ 2021-10-06 22:13
木木9_9
阅读(18)
评论(0)
推荐(0)
摘要:
方法 1.方法 知识小店: 方法的原子性: 一个方法只完成一个功能,这样利于后期的扩展 package com.lin.study.method;public class Demo01 { public static void main(String[] args) { int sum = add 阅读全文
posted @ 2021-10-06 22:12
木木9_9
阅读(146)
评论(0)
推荐(0)
摘要:
For循环 1.for循环练习1:奇数偶数和 知识小店:1.快捷生成for语句: 100.for + 回车 2.死循环: for(;;){}; package com.lin.study.foryuju;public class ForDemo01 { public static void mai 阅读全文
posted @ 2021-10-06 22:11
木木9_9
阅读(431)
评论(0)
推荐(0)
摘要:
循环语句 1. while语句 package com.lin.study.xunhuan;public class WhileDemo { public static void main(String[] args) { //计算1+2+3+...+100=? int i = 0,sum = 0 阅读全文
posted @ 2021-10-06 22:10
木木9_9
阅读(71)
评论(0)
推荐(0)
摘要:
switch 语句 1.简单switch语句 package com.lin.study.switchyuju;public class SwitchDemo01 { public static void main(String[] args) { //case穿透 //switch:匹配一个具体 阅读全文
posted @ 2021-10-06 22:09
木木9_9
阅读(91)
评论(0)
推荐(0)
摘要:
If语句 1.普通If语句 package com.lin.study.ifyuju;import java.util.Scanner;public class IfDemo01 { public static void main(String[] args) { Scanner scanner 阅读全文
posted @ 2021-10-06 22:05
木木9_9
阅读(170)
评论(0)
推荐(0)
摘要:
Scanner类 1.next方式 package com.lin.study.scanner;import java.util.Scanner;public class Demo01 { public static void main(String[] args) { //创建一个扫描器对象 阅读全文
posted @ 2021-10-06 21:59
木木9_9
阅读(407)
评论(0)
推荐(0)
摘要:
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 阅读全文
posted @ 2021-10-06 21:48
木木9_9
阅读(7)
评论(0)
推荐(0)

浙公网安备 33010602011771号