04 2020 档案

摘要:1. package jv;public class zuoye { 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 12:15 ahuhah 阅读(140) 评论(0) 推荐(0)
摘要:1. package zuoye;public class sj { private String color; private int cpu; public laptop(String color,int cpu) { this.color =color; this.cpu=cpu; } pub 阅读全文
posted @ 2020-04-23 13:49 ahuhah 阅读(99) 评论(0) 推荐(0)
摘要:1 定义三个方法:getArea()求面积、getPer()求周长,showAll()分别在控制台输出长、宽、面积、周长。2 有2个属性:长length、宽width3 创建一个Rectangle对象,并输出相关信息 package sss;public zuoye { double length; 阅读全文
posted @ 2020-04-23 10:46 ahuhah 阅读(93) 评论(0) 推荐(0)
摘要:1. package sj;import java.util.*;public class zy { public static void main(String[] args) { int a[] = new int[10]; int sum = 0, max = 0, min = 1000; S 阅读全文
posted @ 2020-04-16 14:19 ahuhah 阅读(110) 评论(0) 推荐(0)
摘要:1. package week; import java.util.Scanner; public class zy { public static void main(String[] args) { // TODO Auto-generated method stub int[] num = n 阅读全文
posted @ 2020-04-15 15:09 ahuhah 阅读(150) 评论(0) 推荐(0)
摘要:1. package ac;public dd { public static void main(String[] args) { int a[]= {10,20,30,40,50}; for(int i=0;i<a.length;i++) { System.out.println(a[i]); 阅读全文
posted @ 2020-04-09 11:48 ahuhah 阅读(109) 评论(1) 推荐(0)
摘要:1.package qe;public class ad { public static void main(String args[]) { //1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句)int sum = 0; for(int 阅读全文
posted @ 2020-04-01 10:44 ahuhah 阅读(109) 评论(0) 推荐(0)