摘要: package ii; public class Student { String name; double a; public static void main(String[] args) { Student s1 = new Student(); s1.a = 90; s1.name = "z 阅读全文
posted @ 2020-05-07 11:28 afther 阅读(278) 评论(0) 推荐(0) 编辑
摘要: package ak; public class Point { int x; int y; void Ponit() { System.out.println(x); System.out.println(y); } void Ponit(int x0, int y0) { x = x0; y = 阅读全文
posted @ 2020-04-30 11:25 afther 阅读(210) 评论(0) 推荐(0) 编辑
摘要: package w; import java.util.Random; import java.util.Scanner; public class menu { public static void main(String[] args) { mainMenu(); } public static 阅读全文
posted @ 2020-04-24 17:52 afther 阅读(208) 评论(0) 推荐(0) 编辑
摘要: package ww; public class Rectangle { int cpu; char color; public void all() { System.out.println("颜色是" + color); System.out.println("cpu是" + cpu); } } 阅读全文
posted @ 2020-04-23 11:21 afther 阅读(80) 评论(0) 推荐(0) 编辑
摘要: package ww; public class Rectangle { int length; int width; public void area() { System.out.println(length * width); } public void per() { System.out. 阅读全文
posted @ 2020-04-17 19:11 afther 阅读(90) 评论(0) 推荐(0) 编辑
摘要: package a; import java.util.Scanner; public class ma { public static void main(String[] args) { int a[] = new int[10]; int sum = 0, max = 0, min = 100 阅读全文
posted @ 2020-04-16 11:37 afther 阅读(150) 评论(0) 推荐(0) 编辑
摘要: package a; public class ma { public static void main(String[] args) { int a[]={6,34,55,1,32,4}; for(int i=0;i<a.length-1;i++){ for(int n=0;n<a.length- 阅读全文
posted @ 2020-04-12 18:59 afther 阅读(144) 评论(0) 推荐(0) 编辑
摘要: package aa; public class mm { public static void main(String[] args) { int arr[]={10,20,30,40,50}; for(int j=0;j<5;j++){ System.out.println(arr[j]); } 阅读全文
posted @ 2020-04-09 11:05 afther 阅读(144) 评论(0) 推荐(0) 编辑
摘要: package aa; public class text { public static void main(String[] args) { int i,ge,shi,bai; for(i=100;i<=999;i++){ ge=i%10; shi=i/10%10; bai=i/100; if( 阅读全文
posted @ 2020-04-02 12:26 afther 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1. package aa; public class text { public static void main(String[] args) { int sum=0; for(int i=1;i<=100;i++){ if(i%3==0){ sum+=i; } } System.out.pri 阅读全文
posted @ 2020-03-30 17:07 afther 阅读(169) 评论(0) 推荐(0) 编辑