10 2021 档案

摘要:# Other default tuning values# MySQL Server Instance Configuration File# # Generated by the MySQL Server Instance Configuration Wizard### Installation 阅读全文
posted @ 2021-10-17 09:43 年年ℓ 阅读(207) 评论(0) 推荐(0) 编辑
摘要:public class OverLoadTest2 { public static int add(int a, int b) { // 定义一个方法 return a + b; } public static double add(double a, double b) { // 与第一个方法相 阅读全文
posted @ 2021-10-12 23:02 年年ℓ 阅读(64) 评论(0) 推荐(0) 编辑
摘要:class Shape { } // 图形类 class Square extends Shape { } // 正方形类继承图形类 class Circular extends Shape { } // 圆形类继承图形类 public class Demo6 { public static voi 阅读全文
posted @ 2021-10-12 23:01 年年ℓ 阅读(19) 评论(0) 推荐(0) 编辑
摘要:package lianxi;interface Paintable { // 可绘制接口 public void draw(); // 绘制抽象方法} class Quadrangle { // 四边形类 public void doAnything() { System.out.println( 阅读全文
posted @ 2021-10-12 22:58 年年ℓ 阅读(26) 评论(0) 推荐(0) 编辑
摘要:public class Student { String name; int age; public Student(String name, int age) { this.name = name; this.age = age; } public String toString() { ret 阅读全文
posted @ 2021-10-07 19:21 年年ℓ 阅读(232) 评论(0) 推荐(0) 编辑
摘要:public class Fruit //创建一个Fruit类{ private String name; //定义“水果名称” private float price; //定义“水果价格” private float weight; //定义“水果重量” public String getNam 阅读全文
posted @ 2021-10-06 22:46 年年ℓ 阅读(53) 评论(0) 推荐(0) 编辑
摘要:class Parent { public Parent() { System.out.println("调用父类构造方法"); }}class Child extends Parent { public Child() { System.out.println("调用子类构造方法"); }}pub 阅读全文
posted @ 2021-10-05 22:17 年年ℓ 阅读(8) 评论(0) 推荐(0) 编辑
摘要:public class Student { int number; //学号 String name; //姓名 float chinese; //语文成绩 float math; //数学成绩 float english; //英语成绩 public Student(int number, St 阅读全文
posted @ 2021-10-04 22:56 年年ℓ 阅读(143) 评论(0) 推荐(0) 编辑
摘要:1.冒泡排序 package ketang; public class xc { public static void main(String[] args) { int arr[]= {1,4,2,7,9}; paixu(arr); } public static void paixu(int a 阅读全文
posted @ 2021-10-03 23:19 年年ℓ 阅读(38) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示