摘要:
package lianxi; public class Clock { int hour,minute,second; Clock(int xiaoshi,int fenzhong, int miao) { hour=xiaoshi; minute=fenzhong; second=miao; } 阅读全文
摘要:
1.Account类 2.main 阅读全文
摘要:
public class Ladder { double shangdi,xiadi,height,area; Ladder(Double shangdi,Double xia,Double gao) { //使用参数来初始化属性 //this代表当前类 this.shangdi=shangdi; xiadi... 阅读全文
摘要:
package lianxi; import java.util.*; public class Sangeshupaixu { public static void main(String[] args) { System.out.println("请输入x的值:"); Scanner shu1= 阅读全文
摘要:
package lianxi; import java.util.*; public class Sanweishu { public static void main(String[] args) { String shu = "1234"; int sum = 0; for (int i = 0 阅读全文
摘要:
package lianxi; public class XiYouJiRenWu { String Name; double Height; String Weapon; void printName() { System.out.println(Name); } void printWeapon()... 阅读全文
摘要:
package lianxi; import java.util.*; public class Zifugeshu { public static void main(String[] args) { System.out.println("输入一个字符串"); Scanner shuru=new 阅读全文
摘要:
package lianxi; public class Qiu { public static void main(String[] args) { double sum1 = 0, sum2 = 0, hight = 100.0; for (int i = 0; i < 10; i++) { s 阅读全文
摘要:
package lianxi; import java.util.*; public class Diejia { public static void main(String[] args) { System.out.println("请输入一个基数:"); Scanner jishu = new 阅读全文
摘要:
package lianxi; import java.util.*; public class Xvexichengji { public static void main(String[] args) { System.out.println("输入姓名"); Scanner xingming 阅读全文