摘要: 阅读全文
posted @ 2015-12-05 15:31 一念了了 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-05 08:46 一念了了 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 100以内和7有关的数字package text;public class Sjiao {public static void main(String[] args) {int m=100;for(int i=1;i<=m;i++){if(i%7==0||i/10==7||i%10==7)Syste... 阅读全文
posted @ 2015-12-05 08:27 一念了了 阅读(154) 评论(0) 推荐(0) 编辑
摘要: int []a=new int [3]; a[0]=1; a[1]=2; a[2]=3; int len=a.length; System.out.println("a[1]"+a... 阅读全文
posted @ 2015-12-05 08:22 一念了了 阅读(117) 评论(0) 推荐(0) 编辑
摘要: package hello;public class Sanjiao { public static void main(String[]args){ for(int i=1;i0;j--){ System.out.print(" "); ... 阅读全文
posted @ 2015-12-04 08:41 一念了了 阅读(470) 评论(0) 推荐(0) 编辑
摘要: //SWITCH int w =2; String s ="10"; switch (s){ case "0": System.out.println("今天是星期日"); ... 阅读全文
posted @ 2015-12-04 08:25 一念了了 阅读(183) 评论(0) 推荐(0) 编辑
摘要: package hello;public class to { public static void main(String[]args){ int a =1,b=0; int c =1,d=0; int e =1,f=0; int wang = a+c... 阅读全文
posted @ 2015-12-03 09:27 一念了了 阅读(221) 评论(0) 推荐(0) 编辑
摘要: public class Hello { public static void main(String[] args) { boolean t = true;// 逻辑真 t = false;// 逻辑假 System.... 阅读全文
posted @ 2015-12-03 08:33 一念了了 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-01 10:53 一念了了 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 一般容器都有默认布局方式,但是有时候需要精确指定各个组建的大小和位置,就需要用到空布局。操作方法:1) 首先利用setLayout(null)语句将容器的布局设置为null布局(空布局)。2) 再调用组件的setBounds(int x, int y, int width,int height)方法... 阅读全文
posted @ 2015-12-01 10:53 一念了了 阅读(746) 评论(0) 推荐(0) 编辑