摘要:
ternary operator: advantage: make a terse simple conditional assignment statement of if-then-else. disadvantage: if must contains return type,... 阅读全文
摘要:
Here is a simple algorithm about 'decimal' to 'dexadecimal',and the implementation code: 1 /* 2 Convert from decimal to binary,octonary and hexadecima... 阅读全文
摘要:
First, I gonna post my test result with some code: 1 //test the peformance of the and the . 2 class ShiftOperation 3 { 4 public static void main... 阅读全文
摘要:
一个数,进行异或同一个数两次,将得到原来的数,例如: 1 6 ^ 4 ^ 4 = 6; 2 0000-0000-0000-0110 3 ^ 0000-0000-0000-0100 4 ------------------------------ 5 =... 阅读全文
摘要:
1 b3 = b3 + 1; //compile error(有两个操作过程,先右边求和,然后类型自动提升,赋值给左边).2 b3 += 1; //只有一个操作过程,就是'赋值'(内部自动转换).1 byte b1 = 1, b2 = 2, b;2 b = b1 + b2; //com... 阅读全文
摘要:
1 /*2 转义字符:通过\ 来转变后面字母或者符号的含义。3 \n:换行。4 \b:退格。相当于backspace。5 \r:按下回车键。window系统,回车符是由两个字符来表示\r\n.6 \t:制表符。相当于tab键。7 */ 阅读全文
摘要:
1 /* 2 整数的'3'种表现形式: 3 1,十进制. 4 2,八进制. 5 3,十六进制. 6 */ 7 public class IntegerDemo 8 { 9 public static void main(String[] args){10 int dec... 阅读全文
摘要:
simply talk about the and the in java development. when the and are not set:It won't work if we do not set the when trying to compile .java so... 阅读全文
摘要:
Here are two ways to create file using 'doc' command: Method i:1 copy con [file name][enter key]2 [content]3 ctrl+z4 for instance,5 copy con [hello.txt][enter key]6 hello 7 ctrl+z Method ii:1 echo [content]>[file name][enter key]2 for instance,3 echo hello>hello.txt 阅读全文
摘要:
Encounted the issue accident when helping my classmate dealing with his homework assignment,it turns out that I have to consider about 'IsPostBack' wh... 阅读全文