码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
关于Integer缓冲
默认的时候,-128——127范围内的数会被缓冲 但是jvm启动的时候可以修改启动参数-Djava.lang.Integer.IntegerCache.high=2000 来修改上限,但是下限是不可以修改的。 public static void main(String[] args) { Inte...
分类:其他好文   时间:2015-01-02 12:06:57    阅读次数:156
String to Integer (atoi)
这道题知道了用long long 这种变量类型,从最初的128ms优化到68ms代码如下:class Solution {public: int atoi(const char *str) { if(str == NULL) return 0; int i=0; int f...
分类:其他好文   时间:2015-01-01 19:46:00    阅读次数:196
verilog中的for循环问题
module mult_for(outcome,a,b);parameter SIZE=8;input[SIZE:1] a,b;output reg[2*SIZE:1] outcome;integer i;always @(a or b) begin outcome<=0; for(i=...
分类:其他好文   时间:2015-01-01 17:19:39    阅读次数:469
java判断字符串是否可以转为数字
方法1 try { Integer.parseInt(str); return true; } catch (NumberFormatException e) { return false; } 方法2 Pattern pattern = Pattern.compile("^[0-9]*$"); Matcher matcher = pattern.matcher(str); return matcher.matches();...
分类:编程语言   时间:2015-01-01 14:51:26    阅读次数:225
LintCode-Minimum Subarray
Given an array of integers, find the subarray with smallest sum.Return the sum of the subarray.NoteThe subarray should contain at least one integer.Ex...
分类:其他好文   时间:2015-01-01 00:08:45    阅读次数:135
[整理]当前日期的加减运算
在DateUtils(d7)里,有如下几个现成的函数 function IncYear(const AValue: TDateTime; const ANumberOfYears: Integer = 1): TDateTime; // function IncMonth is in SysUtil...
分类:其他好文   时间:2015-01-01 00:02:44    阅读次数:372
【LeetCode】Missing Ranges
Missing RangesGiven a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges.For example, given [0, ...
分类:其他好文   时间:2014-12-31 17:39:21    阅读次数:110
大表 update 方式
--declare cursor cur_t is select rowid rid from tpr_zwjyw3 where dwid=10113222; type tab_t is table of urowid index by binary_integer; l_rid tab...
分类:其他好文   时间:2014-12-31 16:01:30    阅读次数:186
[java]进制转换
1 int n1 = 14; 2 //十进制转成十六进制: 3 Integer.toHexString(n1); 4 //十进制转成八进制 5 Integer.toOctalString(n1); 6 //十进制转成二进制 7 Integer.toBinaryString(12); 8 9 //.....
分类:编程语言   时间:2014-12-31 13:02:55    阅读次数:134
PHP接口开发XML/JSON数据通信类
总体类Json数据处理/** *json format data *@param integer $code status code *@param string $message message data *@param array $data *return string */ publi...
分类:Web程序   时间:2014-12-31 11:13:08    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!