会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
木木9_9
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2021年10月8日
9.常用类
摘要: 常用类 1. 包装类 package com.lin.study.bjsxt.test01;public class Test { public static void main(String[] args) { //1.1.利用包装类Integer获取int类型的最值 System.out.pr
阅读全文
posted @ 2021-10-08 23:34 木木9_9
阅读(15)
评论(0)
推荐(0)
2021年10月6日
8.类与对象
摘要: 类与对象 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)
7.数组
摘要: 数组 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)
6.方法
摘要: 方法 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)
5.for循环语句
摘要: 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)
4. 循环语句
摘要: 循环语句 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)
3. switch语句
摘要: 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)
2.if语句
摘要: 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)
1.Scanner类
摘要: 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)
1
2
下一页
公告