5.1 java8增强的包装类
自动装箱(Autoboxing)和自动拆箱(AutoUnboxing)功能package code;
public class AutoBoxUnboxing{
public static void main(String [] args){
//直接把一个基本类型变量赋给Integer对象
Integer inObj...
分类:
其他好文 时间:
2015-02-18 16:29:16
阅读次数:
145
Drazil is playing a math game with Varda.Let’s define for positive integer x as a product of factorials of its digits. For example, .First, they choose a decimal number a consisting of n digits that co...
分类:
其他好文 时间:
2015-02-18 13:02:15
阅读次数:
103
Drazil is playing a math game with Varda.
Let’s define for positive integer x as a product of factorials of its digits. For example, .
First, they choose a decimal number a consisting of n digits that contain...
分类:
其他好文 时间:
2015-02-18 06:13:14
阅读次数:
172
1.变量赋初始值 1 const 2 {$J+} 3 num: Integer = 1; 4 {$J-} 5 begin 6 Inc(num); 7 ShowMessage(IntToStr(num)); {2} 8 end; 9 10 //或者写作:11 const12 {$WRITE...
分类:
其他好文 时间:
2015-02-17 12:53:03
阅读次数:
142
declaretype t_indexby is table of numberindex by binary_integer;type t_nested is table of number;type t_varray is varray(10) of number;v_indexby t_ind...
分类:
数据库 时间:
2015-02-17 09:11:26
阅读次数:
189
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:
其他好文 时间:
2015-02-17 00:42:49
阅读次数:
126
/* binary.c -- prints integer in binary form */#include void to_binary(unsigned long n);int main(void){ unsigned long number; printf("Enter ...
分类:
编程语言 时间:
2015-02-16 19:38:43
阅读次数:
170
这里面主要是考虑边界情况: input " 1234" output 1234 input "+1234% *" output 1234 input "-1234.4" output -1234 input "%@!1234" output 0 input "21474...
分类:
其他好文 时间:
2015-02-16 14:16:04
阅读次数:
142
{替换字符串}function StringReplace(const S, OldPattern, NewPattern: string): string;var SearchStr, Patt, NewStr: string; Offset: Integer;begin SearchStr...
1、单表继承 (1)、实体类,代码如下: package learn.hibernate.bean; import java.util.Date; /** * 持久化类设计 * 注意: * 持久化类通常建议要有一个持久化标识符(ID) * 持久化标识符通常建议使用封装类(例如:Integer 因为基...
分类:
Web程序 时间:
2015-02-15 21:50:09
阅读次数:
205