摘要: 1. package text; import java.util.Arrays; import java.util.Random; import java.util.Scanner; public class Zuoyee { public static void main(String[] ar 阅读全文
posted @ 2020-05-28 14:06 计算机1804梁浩 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1. package test; public class ColaEmployee { String name; int month; public ColaEmployee() { super(); } public ColaEmployee(String name, int month) { 阅读全文
posted @ 2020-05-20 11:41 计算机1804梁浩 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1. package test; public class Vehicle { public String brand; public String color; public double speed=0; void setVehicle(String brand,String color) { 阅读全文
posted @ 2020-05-14 14:47 计算机1804梁浩 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1. package test; public class Student { String name; double score; public Student() { } public Student(String name, int score) { this.name = name; thi 阅读全文
posted @ 2020-05-07 14:53 计算机1804梁浩 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1. package LH; public class Point { int x; int y; Point() { } Point(int x0, int y0) { this.x = x0; this.y= y0; } void movePoint(int dx,int dy) { this. 阅读全文
posted @ 2020-04-30 14:47 计算机1804梁浩 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1. package test; import java.util.Scanner; import java.util.Random; public class LH { public static void main(String[] args) { mainMenu(); } public st 阅读全文
posted @ 2020-04-28 23:01 计算机1804梁浩 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1. package test; public class LH { int cpu; char color; public void all() { System.out.println("颜色是" + color); System.out.println("cpu是" + cpu); } } p 阅读全文
posted @ 2020-04-23 13:20 计算机1804梁浩 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1. package test; import java.util.*; public class LH { public static void main(String[] args) { int []a=new int[10]; Scanner input=new Scanner(System. 阅读全文
posted @ 2020-04-16 17:35 计算机1804梁浩 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1. import java.util.*; public class LH { public static void main(String[] args) { int[] a = {1,2,4,3,5}; for(int i=0; i<a.length-1; i++) { for(int b=0 阅读全文
posted @ 2020-04-15 12:33 计算机1804梁浩 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1. package test; public class LH { public static void main(String[] args) { int[] arr=new int[]{10,20,30,40,50}; for(int i=0;i<arr.length;i++){ System 阅读全文
posted @ 2020-04-09 12:42 计算机1804梁浩 阅读(137) 评论(0) 推荐(0) 编辑