摘要:
package pack1; public class A { private int i; float f; public double d; public float getF() { return f; } public void setF(float f) { this.f = f; ... 阅读全文
摘要:
package lianxi; public class Shuzunixushuchu { public static void main(String[] args) { int[] ary={1,2,3,4,5,6,7}; for (int i = ary.length-1; i >=0; i 阅读全文
摘要:
package lianxi; import java.util.*; public class Huiwenshu { public static void main(String[] args) { System.out.println("输入一个5位的正整数"); Scanner shu=new Scanner(System.in); String a=s... 阅读全文
摘要:
package lianxi; import java.util.*; public class Nixudayin { public static void main(String[] args) { System.out.println("输入一个不多于5位的正整数"); Scanner shu 阅读全文
摘要:
package lianxi; public class Qiuhe { public static void main(String[] args) { double sum=0,fenshu=0,a=1,b=2,c=0; for (int i = 0; i < 20; i++) { fenshu 阅读全文
摘要:
package lianxi; import java.util.*; public class Panduantianshu { public static void main(String[] args) { int sum; while (true) { System.out.println("请输入年份... 阅读全文
摘要:
package lianxi; public class Cat { String Name, Color; int Age; void getName() { System.out.println(Name); } void HanJiao() { System.out.println("~~喵喵 阅读全文
摘要:
package lianxi; public class Print_1 { int x; Print_1(int x) { this.x = x; } void outPut() { String a = "abcdefghijklmnopqrstuvwxyz"; if (x == 1) { Sy 阅读全文
摘要:
package lianxi; public class Print { void getShuiXianHuaShu() { int a; for (int i = 1; i < 10; i++) { for (int j = 0; j < 10; j++) { for (int k = 0; k 阅读全文
摘要:
package lianxi; public class Student { String Name; int XveHao,Age; Student(String Name,int XveHao,int Age) { this.Name=Name; this.XveHao=XveHao; this 阅读全文