摘要: package liu0917; public class Cat { String name="妮妮"; int age=2; String maose="灰色"; void mao() { System.out.println("cat的姓名是:"+name); } void hanjiao() { System.out.println("喵喵"); }... 阅读全文
posted @ 2016-09-17 16:22 琢磨先生 阅读(3035) 评论(0) 推荐(0)
摘要: package liu0917; public class Print2 { int x; void output() { if(x==1) { for(int i =65;i<=90;i++)//大写字母在char类型中的位置 { char a =(char) i; System.out.print(a); ... 阅读全文
posted @ 2016-09-17 15:56 琢磨先生 阅读(1034) 评论(0) 推荐(0)
摘要: package liu0917; 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 15:39 琢磨先生 阅读(3020) 评论(0) 推荐(0)
摘要: package liu0917; public class Student { int stuNO; String name; int age; void outPut() { System.out.println("学号是:"+stuNO); System.out.println("名字是:"+name); System.out.println("年龄是:"+age)... 阅读全文
posted @ 2016-09-17 15:32 琢磨先生 阅读(8950) 评论(0) 推荐(0)
摘要: package liu0915; import java.util.Scanner; public class Yanghuisanjiao { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("请输入数字"); int n=sc.... 阅读全文
posted @ 2016-09-17 15:11 琢磨先生 阅读(5642) 评论(0) 推荐(0)
摘要: int[][] a ={{3,2,6},{6,8,2,10},{5},{12,3,23}}; int[] b=new int[11]; int c=0,e=0; for(int i =0;i<a.length;i++) { for(int j =0;j<a[i].length;j++) ... 阅读全文
posted @ 2016-09-17 14:41 琢磨先生 阅读(2329) 评论(0) 推荐(0)
摘要: package liu0915; import java.util.Random; public class Test0915sz { public static void main(String[] args) { int[] x=new int[50]; int j=1; for(int i=0;i<50;i++) { x[i]=j; j=j... 阅读全文
posted @ 2016-09-17 14:25 琢磨先生 阅读(3632) 评论(0) 推荐(0)
AmazingCounters.com