04 2020 档案

摘要:package ydy12; public class Point { int x; int y; Point() { } Point(int x0, int y0) { this.x = x0; this.y = y0; } public void movePoint(int dx, int dy 阅读全文
posted @ 2020-04-30 13:19 Happy_Virus 阅读(128) 评论(0) 推荐(0)
摘要:package bwk; import java.util.Random; import java.util.Scanner; public class Khdw { public static void main(String[] args) { // TODO Auto-generated me 阅读全文
posted @ 2020-04-28 10:00 Happy_Virus 阅读(109) 评论(0) 推荐(0)
摘要:package bwk; public class laptop { private String color; private int cpu; public laptop(String color,int cpu) { this.color =color; this.cpu=cpu; } pub 阅读全文
posted @ 2020-04-23 12:17 Happy_Virus 阅读(117) 评论(0) 推荐(0)
摘要:package com.xuexiao; class RectangleDemo{ /*定义一个矩形类Rectangle:(知识点:对象的创建和使用) 1 定义三个方法:getArea()求面积、getPer()求周长,showAll()分别在控制台输出长、宽、面积、周长。 2 有2个属性:长len 阅读全文
posted @ 2020-04-21 12:55 Happy_Virus 阅读(98) 评论(0) 推荐(0)
摘要:package bwk2; import java.util.Scanner; public class Zye { public static void main(String[] args) { // 1.有10个评委打分,(去掉一个最高一个最低)求平均分。 Scanner sc = new S 阅读全文
posted @ 2020-04-16 13:33 Happy_Virus 阅读(114) 评论(0) 推荐(0)
摘要:package bwk2; import java.util.Scanner; public class Zye { public static void main(String[] args) { //1.定义长度位5的整型数组,输入他们的值,用冒泡排序后输出. int[] a = new int 阅读全文
posted @ 2020-04-14 21:32 Happy_Virus 阅读(93) 评论(0) 推荐(0)
摘要:package bwk2; public class Zye { public static void main(String[] args) { //编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 int[] arr=new int[]{10,2 阅读全文
posted @ 2020-04-09 11:31 Happy_Virus 阅读(118) 评论(2) 推荐(1)
摘要:package bwk2; public class Zye { public static void main(String[] args) { //假设某员工今年的年薪是30000元,年薪的年增长率6%。编写一个Java应用程序计算该员工10年后的年薪,并统计未来10年(从今年算起)总收入。(知 阅读全文
posted @ 2020-04-02 13:18 Happy_Virus 阅读(144) 评论(0) 推荐(0)