hello阿诚

有兴趣留言交流

2021年7月21日

12-调用类对象和有参构造和无参构造

摘要: 新建了一个Cooker的对象 public class Cooker { public Cooker(){ System.out.println("我是无参构造器"); } // 构造器的重载 public Cooker(String na,int a,boolean ge, int gr){ na 阅读全文

posted @ 2021-07-21 15:38 陆秋明v 阅读(76) 评论(0) 推荐(0) 编辑

11-新建一个学生类,然后使用java来数组存起来

摘要: public class Student { String name; int age; boolean gender; public Student(String name , int age , boolean gender){ this.name = name; this.age = age; 阅读全文

posted @ 2021-07-21 15:29 陆秋明v 阅读(241) 评论(0) 推荐(0) 编辑

10-求数组的最大值和最小值

摘要: public class demo006 { public static void main(String[] args) { int[] arrs = {1,2,3,5,6,8,9}; //getMax(arrs); int[] maxMix = getMaxAndMix(arrs); Syste 阅读全文

posted @ 2021-07-21 15:25 陆秋明v 阅读(104) 评论(0) 推荐(0) 编辑

09-遍历数组,数组是引用类型

摘要: public class demo005 { public static void main(String[] args) { int[] arrs = {1,2,3,4,5,6}; printArray(arrs); // changArray(arrs); createArray(arrs); 阅读全文

posted @ 2021-07-21 15:23 陆秋明v 阅读(57) 评论(0) 推荐(0) 编辑

08-数组和数组的增强for循环

摘要: public class demo004 { public static void main(String[] args) { int[] arrs = {1,2,3,4,5}; System.out.println(arrs); int sum = 0; for (int i = 0; i < a 阅读全文

posted @ 2021-07-21 15:20 陆秋明v 阅读(40) 评论(0) 推荐(0) 编辑

07-数组

摘要: public class demo003 { /* 数组 */ public static void main(String[] args) { int[] ages = new int[5]; // 数据的长度 System.out.println(ages); int[] ages2 = new 阅读全文

posted @ 2021-07-21 15:18 陆秋明v 阅读(22) 评论(0) 推荐(0) 编辑

06-可变参数

摘要: public class demo002 { public static void main(String[] args) { System.out.println(add(2,2,3,4,5)); } // 如何参数的个数不定,但是不定个数的这些参数类型是相同的,可以使用可变参数 // 可变参数必 阅读全文

posted @ 2021-07-21 15:14 陆秋明v 阅读(19) 评论(0) 推荐(0) 编辑

01- jsp注释

摘要: <%-- Created by IntelliJ IDEA. Date: 2021/7/20 Time: 22:27 To change this template use File | Settings | File Templates. --%> <%@ page contentType="te 阅读全文

posted @ 2021-07-21 13:55 陆秋明v 阅读(48) 评论(0) 推荐(0) 编辑

element中 不想要 el-input 的上下按键的处理方法

摘要: <el-input placeholder="请输入密码" v-model="input" show-password type=“number”></el-input> 其中又想要数字 又想不要 上下箭头 可以切换成 属性中添加 controls = false <el-input-number 阅读全文

posted @ 2021-07-21 11:22 陆秋明v 阅读(1022) 评论(0) 推荐(0) 编辑

05-数据的相加和转换

摘要: public class demo001 { public static void main (String [] args){ // System.out.println(demo001.add(1,2)); // System.out.println(Math.max(1,11)); int a 阅读全文

posted @ 2021-07-21 10:44 陆秋明v 阅读(38) 评论(0) 推荐(0) 编辑

导航