上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页
摘要: import java.util.Arrays; public class LianXiTi { public static void main(String[] args) { /* * 2、定义长度为100的int数组,往该数组中存放10以内【0-9】的随机数,并打印出每个数字出现的次数 * - 阅读全文
posted @ 2021-11-22 22:26 大熊童鞋 阅读(708) 评论(0) 推荐(0) 编辑
摘要: public class JiuJiuChengFaBiao { public static void main(String[] args){ //通过外循环控制需要打印的行数 for(int i=1;i<=9;i++){ //通过内循环控制需要打印的列的信息 \t就是空格的意思 for(int 阅读全文
posted @ 2021-11-22 14:31 大熊童鞋 阅读(52) 评论(0) 推荐(0) 编辑
摘要: window >Preferences 镜像要用: <mirror> <id>public</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf 阅读全文
posted @ 2021-11-21 21:31 大熊童鞋 阅读(29) 评论(0) 推荐(0) 编辑
摘要: window >Preferences 阅读全文
posted @ 2021-11-21 21:27 大熊童鞋 阅读(27) 评论(0) 推荐(0) 编辑
摘要: window-->Preferences 点击 add后如图 阅读全文
posted @ 2021-11-21 21:22 大熊童鞋 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 1、显示行号 show line number显示行号 2、重置界面 Window -> Reset ... 重置整个界面 3、切换工作空间 File ->Switch Workspace(工作空间) 4、常规设置 Window - > Preferecens - > General -> Appe 阅读全文
posted @ 2021-11-21 21:12 大熊童鞋 阅读(116) 评论(0) 推荐(0) 编辑
摘要: ★格式:类型[] 数组变量名称 = new 类型[数组的长度]; ▲ 数组的长度 格式: 数组变量名称.length ▲ 访问数组的元素 格式: 数组变量名称[元素位置索引] ▲ 给数组元素赋值 格式: 数组变量名称[元素位置索引] = 值; ▲ 遍历数组: 访问数组的所有元素 a. for循环 b 阅读全文
posted @ 2021-11-21 20:44 大熊童鞋 阅读(1379) 评论(0) 推荐(0) 编辑
摘要: public class KeTangZuoYe_22 { public static void main(String[] args) { /* 1. 定义一个长度为10的int[]数组,并向其中填入10个20(0 - 20)范围内的随机数, 找出其中的最大值、最小值、总和。 1)定义一个长度为1 阅读全文
posted @ 2021-11-21 20:36 大熊童鞋 阅读(2073) 评论(0) 推荐(0) 编辑
摘要: public class ErWeiShuZu_21 { public static void main(String[] args) { /*★在任何已有类型后加上方括号[],又变成一种新类型,这种类型统称为数组类型,所有的数组类型都是引用类型。 int → int[] —— 相当于数组元素为in 阅读全文
posted @ 2021-11-21 20:09 大熊童鞋 阅读(305) 评论(0) 推荐(0) 编辑
摘要: public class ShuZuBianLi_19 { public static void main(String[] args) { /* 数组遍历: 遍历的第一种方式:for循环 遍历的第二种方式:forEach循环,也称为 增强for循环 。 遍历的第三种方式:while循环 或者 do 阅读全文
posted @ 2021-11-21 19:46 大熊童鞋 阅读(3330) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页