上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: package com.homework.zw; //类Print部分 public class Print1 { int x; void output() { if(x==1) { for(int i =65;i<=90;i++) { char a =(ch... 阅读全文
posted @ 2016-09-17 10:11 HRZJ 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: package com.homework.zw; //print类部分 public class Print { void output() { for(int i =100;i<=999;i++) { if(Math.pow(i/100,3)+Math.pow(i%10,3)+Math.pow(i/10%10, 3)==i... 阅读全文
posted @ 2016-09-17 09:54 HRZJ 阅读(559) 评论(0) 推荐(0) 编辑
摘要: package com.homework.zw; //student类部分 public class Student { int stuNo; String name; int age; void output() { System.out.println("学号:"+stuNo); System.out.println("... 阅读全文
posted @ 2016-09-17 09:44 HRZJ 阅读(11672) 评论(0) 推荐(0) 编辑
摘要: package com.homework.zw;//此题没有太大难度,不再写注释import java.util.Scanner;public class work4 { public static void main(String[] args) { Scanner sc = new Scanne 阅读全文
posted @ 2016-09-16 15:15 HRZJ 阅读(2500) 评论(0) 推荐(0) 编辑
摘要: package com.homework.zw; public class work3 { public static void main(String[] args) {//定义数组x和y的类型 int[] x=new int[50]; char[][] y=new char[10][10]; int j =1; ... 阅读全文
posted @ 2016-09-16 14:44 HRZJ 阅读(5138) 评论(0) 推荐(0) 编辑
摘要: package com.homework.zw; //解题思路:先遍历二维数组的所有元素,用这些元素组成新的一维数组。然后利用冒泡排序找出一维数组的最大元素和最小元素。 public class work2 { public static void main(String[] args) { int[][] a ={{3,2,6},{6,8,2,10},{5... 阅读全文
posted @ 2016-09-16 14:43 HRZJ 阅读(997) 评论(0) 推荐(0) 编辑
摘要: package com.homework.zw; public class work1 { public static void main(String[] args) { int[] a ={3,4,5,6}; int[] b ={1,2,3,4,5,6,7}; System.out.print("b[]={"); ... 阅读全文
posted @ 2016-09-16 14:42 HRZJ 阅读(783) 评论(0) 推荐(0) 编辑
摘要: package com.hanqi.lianxi; import java.util.Random;import java.util.Scanner; public class yanzhengma{ public static void main(String[] args) { String s 阅读全文
posted @ 2016-09-14 14:26 HRZJ 阅读(861) 评论(0) 推荐(0) 编辑
摘要: package com.hanqi.lianxi; package com.hanqi.lianxi; import java.util.Scanner; public class jiamiqi { public static void main(String[] args) { //输入解密前的内容 Scanner sc = new Scanne... 阅读全文
posted @ 2016-09-14 12:56 HRZJ 阅读(386) 评论(0) 推荐(0) 编辑
摘要: package com.hanqi.lianxi; import java.util.Scanner; public class startWith { //自己顶一个与startWith类似的判断方法 public static void main(String[] args) { //首先随便定 阅读全文
posted @ 2016-09-14 10:20 HRZJ 阅读(159) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页