摘要: 2021.9.2 数组 数组的声明和创建 package array; public class ArrayDemo01 { //变量类型 变量的名字 = 变量的值; //数组类型 public static void main(String[] args) { int[] nums;//声明一个数字 nums = 阅读全文
posted @ 2021-09-02 17:35 热哦i好几年。 阅读(59) 评论(0) 推荐(0)
摘要: Java的方法 形参与实参 package method; public class Demo01 { public static void main(String[] args) { //1,2 实际参数 实际调用传递给他的参数 int sum = add(1,2); System.out.pri 阅读全文
posted @ 2021-07-22 22:29 热哦i好几年。 阅读(57) 评论(0) 推荐(0)
摘要: break与continue break package struct; public class BreakDemo { public static void main(String[] args) { int i = 0; while (i<100){ i++; System.out.print 阅读全文
posted @ 2021-07-21 22:46 热哦i好几年。 阅读(79) 评论(0) 推荐(0)
摘要: scanner package scanner; import java.util.Scanner; public class Demo01 { public static void main(String[] args) { //创建一个扫描器对象,用于接收键盘数据 Scanner scanner 阅读全文
posted @ 2021-07-20 19:04 热哦i好几年。 阅读(60) 评论(0) 推荐(0)
摘要: 最近学习的代码 package com.hjx.base; public class Demo01 { public static void main(String[] args) { //八大基本数据类型 // 整数 int numa=10;//int最常用 byte numb=20; short 阅读全文
posted @ 2021-07-19 22:38 热哦i好几年。 阅读(55) 评论(0) 推荐(0)
摘要: 复习 今天重新学习了一下数据类型虽然在学校学过但是感觉有点随意,今天重新整理了一下。 记录一下: import java.math.BigDecimal; public class Demo02 { public static void main(String[] args) { //整数扩展: 进 阅读全文
posted @ 2021-07-18 21:29 热哦i好几年。 阅读(31) 评论(0) 推荐(0)
摘要: 问题 昨天晚上到现在的一个问题在cmd中一直运行不出来"Hello,World!" 在发现代码没有问题后,感觉是环境配置出了问题,在使用学校的环境配置失败和网上教学也失败后。 终于在这篇博客中发现了问题所在 我发现我就是第一点问题!! 一个".;"导致我的问题!! 阅读全文
posted @ 2021-07-17 16:20 热哦i好几年。 阅读(34) 评论(0) 推荐(0)
摘要: Markdown学习 标题 三级标题 四级标题 五级标题 字体 黄杰轩 黄杰轩 黄杰轩 黄杰轩 引用 好好学习,天天向上 分割线 图片 超链接 我的博客 列表 asd rt D 849 48 32 表格 名字 性别 年龄 黄杰轩 男 19 代码 阅读全文
posted @ 2021-07-16 16:32 热哦i好几年。 阅读(30) 评论(0) 推荐(0)