摘要: class Person{ // 属性 public String name; public int age; // 构造方法 public Person(){ this.name = "张三"; this.age = 16; }}public class Puppy{ public static 阅读全文
posted @ 2020-09-17 14:37 vcsugar 阅读(120) 评论(0) 推荐(0) 编辑
摘要: import java.io.*;//局部变量的使用import java.util.Scanner; public class HelloJava { public static void main(String args[]) { //通过scanner类来获取用户输入 Scanner scan 阅读全文
posted @ 2020-09-17 11:40 vcsugar 阅读(930) 评论(0) 推荐(0) 编辑
摘要: import java.util.Random;import java.util.Arrays; public class Puppy { public static void main(String args[]) { //排序 int[] a = {25, 24, 12, 76, 8, 101, 阅读全文
posted @ 2020-09-17 11:34 vcsugar 阅读(131) 评论(0) 推荐(0) 编辑