摘要:
快捷键无效解决办法:1、考虑是否被其他应用占用,如QQ,QQ音乐,千千动听等2、在eclispe查看是否被修改:Window->Preferences->General->Keys快捷键:1、复制当前行到下一行:Ctrl+Alt+↓2、复制当前行到上一行:Ctrl_Alt+↑3、移动当前行:Alt+...
阅读全文
posted @ 2015-10-02 23:09
我就不吃芹菜
阅读(626)
推荐(0)
编辑
摘要:
1 for(int a = 15; a >=1; a--)2 {3 for(int b = a - 1; b >=0; b--)4 {5 System.out.print("A");6 ...
阅读全文
posted @ 2015-10-01 20:23
我就不吃芹菜
阅读(361)
推荐(0)
编辑
摘要:
1 public class qwer{ 2 public static void main(String [] args){ 3 int b = 0; 4 while(b <= 100) 5 { 6 ...
阅读全文
posted @ 2015-09-30 19:25
我就不吃芹菜
阅读(598)
推荐(0)
编辑
摘要:
课堂上出了这样一道题目,输出0-9,中间的5不能输出,用三元运算符解决这个问题。1 int w;2 w = 0;3 while(w < 10)4 {5 w = (w != 5)?w : ++w;6 System.out.pri...
阅读全文
posted @ 2015-09-30 13:35
我就不吃芹菜
阅读(269)
推荐(0)
编辑
摘要:
1 int c = 0; 2 intg = c%2; 3while(c<=100) 4 { 5 6 if(g == 1) 7 { 8 System.out.println(c); 9 } 10 c++; 11 }自己看了很久没看出来...
阅读全文
posted @ 2015-09-30 12:57
我就不吃芹菜
阅读(323)
推荐(0)
编辑
摘要:
public class 奇偶数判断2 { public static void main(String [] agrs){ float s = 17f; //定义浮点型数据s float h = s%2; //让s对2取余数 ...
阅读全文
posted @ 2015-09-29 19:56
我就不吃芹菜
阅读(874)
推荐(0)
编辑
摘要:
public class 奇偶数判断 { public static void main(String [] args){ float s = 9f; //取单浮点型变量s,可为任意值 float h = s%2; //让s对2取余 ...
阅读全文
posted @ 2015-09-29 19:48
我就不吃芹菜
阅读(3251)
推荐(0)
编辑
摘要:
短路运算符就是我们常用的“&&”、“||”,一般称为“条件操作”。class Logic{public ststic void main(String[] args){int a=1;int b=1;if(a<b && b<a/0){System.out.println("Oh,That's Imp...
阅读全文
posted @ 2015-09-29 11:35
我就不吃芹菜
阅读(1444)
推荐(0)
编辑
摘要:
基本数据类型byte = -128和127------------------------------------------------------------2的8次方,1个字节short = -32768和32767--------------------------------------...
阅读全文
posted @ 2015-09-29 00:52
我就不吃芹菜
阅读(512)
推荐(0)
编辑
摘要:
1 public class 各种数据类型 { 2 static final int itime = 24; 3 public static void main(String[] args) { 4 byte bvolume = 64; 5 short ...
阅读全文
posted @ 2015-09-28 19:45
我就不吃芹菜
阅读(130)
推荐(0)
编辑