摘要: public interface fish { String name="asd" ; int age=0; int velocity=2; static void show() { System.out.println("Fish"+", "+name+", "+age+", "+velocity 阅读全文
posted @ 2020-08-21 20:26 小强哥in 阅读(176) 评论(0) 推荐(0) 编辑
摘要: public class student1 { protected String name; protected int classid; protected int id; public student1(String str,int n,int m) { name=str;classid=n;i 阅读全文
posted @ 2020-08-20 20:15 小强哥in 阅读(155) 评论(0) 推荐(0) 编辑
摘要: public class people{ protected int age; protected String name; public people(int a,String m) { age=a;name=m; } public void setvalue(int a,String m) { 阅读全文
posted @ 2020-08-19 20:25 小强哥in 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 一. import java.util.Scanner; public class complexa { double real,image; complexa() { real=0;image=0; } public void set(double m,double n) { real=m;ima 阅读全文
posted @ 2020-08-18 20:13 小强哥in 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 一. import java.util.Scanner; class dis{ public void distance(double a,double b,double m,double n) { System.out.println("两点之间的距离为:"+Math.sqrt((a-m)*(a- 阅读全文
posted @ 2020-08-17 20:12 小强哥in 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 一. import java.util.Scanner; public class time { int year,month,day; time() { year=1000;month=1;day=1; } public int isleap() { if(year%400==0||year%10 阅读全文
posted @ 2020-08-16 20:10 小强哥in 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 一. import java.util.Scanner; public class vehicle { private double a,b; vehicle() { a=12.3;b=11.6; } vehicle(double m,double n){ a=m;b=n; } public dou 阅读全文
posted @ 2020-08-15 20:05 小强哥in 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 一. import java.util.Scanner; public class complex{ private int a,b,c,d; complex(int m,int n,int p,int q){ a=m;b=n;c=p;d=q; } public void add() { Syste 阅读全文
posted @ 2020-08-14 20:48 小强哥in 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 一.import java.util.Scanner; public class point { Scanner input=new Scanner(System.in); private double x,y,z; public void in() { x=input.nextDouble();y 阅读全文
posted @ 2020-08-13 20:56 小强哥in 阅读(85) 评论(0) 推荐(0) 编辑
摘要: public class student { private int age; private String name; public void input(int a,String b) { age=a; name=b; } public void output() { System.out.pr 阅读全文
posted @ 2020-08-12 21:27 小强哥in 阅读(76) 评论(0) 推荐(0) 编辑