码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
Java 中包装类wrapped type之间以及和primitive type的比较
注意, 包装类的实例之间比较, 是不能直接用 == 的 public static void main(String[] args) { // TODO Auto-generated method stub Integer a = new Integer(1); ...
分类:移动开发   时间:2015-06-09 00:53:13    阅读次数:147
leetcode之Happy Number
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:移动开发   时间:2015-06-08 22:55:02    阅读次数:153
jav---int,float,long,double取值范围,内存泄露
1 public class TestOutOfBound { 2 public static void main(String[] args) { 3 4 System.out.println(Integer.MAX_VALUE-(-Integer.MAX_VALUE)); //内存溢出 ...
分类:其他好文   时间:2015-06-08 21:18:06    阅读次数:266
android-多线程
AsyncTaskpublic class MyAsyncTask extends AsyncTask { @Override protected void onProgressUpdate(Integer... values) { // 更新进度条通知或其它UI元素 ...
分类:移动开发   时间:2015-06-08 19:11:03    阅读次数:108
java的不可变类
1、Integerpublic static void main(String[]args) { Integer i=new Integer(1); System.out.println(i.intValue()); i=2; Syst...
分类:编程语言   时间:2015-06-08 16:49:55    阅读次数:132
typedef关键字
typedef作用简介?我们可以使用typedef关键字为各种数据类型定义一个新名字(别名)。 1#include 23 typedef int Integer;4 typedef unsigned int UInterger;56 typedef float Float;78 int main(i...
分类:其他好文   时间:2015-06-08 16:34:31    阅读次数:84
Integer的缓存
根据Integer类得到Integer实例的方式:Integer instance=new Integer(int value);Integer instance=Integer.valueOf(int value);第一种方式每次当然都会产生一个新的实例,但是第二种方式就不尽然: 1 public...
分类:其他好文   时间:2015-06-08 14:39:20    阅读次数:151
System.Insert - 插入字符串
System.Insert - 插入字符串procedure Insert( Substr: String; {要插入的字符串; 可以是常量} var Dest: String; {源字符串} Index: Integer {从第几个字符前插入});举例:var ss,s: Wid...
分类:其他好文   时间:2015-06-08 13:19:49    阅读次数:92
LeetCode:Contains Duplicate II
Problems:Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = n...
分类:其他好文   时间:2015-06-08 12:58:28    阅读次数:119
PAT Perfect Sequence (25)
题目描述 Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M <= m * p where M and m are the maximum and minimum numbers in the seq...
分类:其他好文   时间:2015-06-08 11:38:36    阅读次数:105
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!