publicclassTest{
publicstaticvoidmain(String[]args){
Integerj=192;
inti=192;
System.out.println(newInteger(12)==newInteger(12));//false对象比较。///必然不同
System.out.println(newInteger(192)==i);//true自动拆箱
System.out.println(j==i);//true..
分类:
其他好文 时间:
2014-08-15 14:48:19
阅读次数:
222
Problem Description
Teacher Mai has an integer x.
He does the following operations k times. In the i-th operation, x becomes the least integer no less than x, which is the multiple of i.
He w...
分类:
其他好文 时间:
2014-08-15 14:41:45
阅读次数:
165
Covered WalkwayTime Limit: 10000msMemory Limit: 131072KBThis problem will be judged onHDU. Original ID:425864-bit integer IO format:%I64d Java class n...
分类:
其他好文 时间:
2014-08-15 14:14:28
阅读次数:
201
1290: Random IntegersTime Limit:1 SecMemory Limit:128 MBSubmit:72Solved:45[Submit][Status][Web Board]DescriptionWe choose an integer K (K > 0). Then w...
分类:
其他好文 时间:
2014-08-14 23:48:26
阅读次数:
211
Problem Description
Teacher Mai has an integer x.
He does the following operations k times. In the i-th operation, x becomes the least integer no less than x, which is the multiple of i.
He wan...
分类:
其他好文 时间:
2014-08-14 20:39:59
阅读次数:
256
public class BaseTypeClassTest {/* * 常用类 * 1、基本类型的封装类: 在Java语言中,八种基本类型均对应着一个封装类。 * * byte ====>>> Byte * short ===>>> Short * int =====>>> Integer * ....
分类:
编程语言 时间:
2014-08-14 19:44:29
阅读次数:
200
int atoi(const char *nptr);把字符串转换成整型数。ASCII to integer 的缩写。头文件: #include 参数nptr字符串,如果第一个非空格字符存在,是数字或者正负号则开始做类型转换,之后检测到非数字(包括结束符 \0) 字符时停止转换,返回整型数。否则,返...
分类:
其他好文 时间:
2014-08-14 16:41:28
阅读次数:
200
Rank of TetrisTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:181164-bit integer IO format:%I64d Java class name...
分类:
其他好文 时间:
2014-08-14 16:23:28
阅读次数:
216
class BinaryTree { class Node { private Comparable data; private Node left; private Node right; public void addNode(Node newNode) { if (ne...
分类:
其他好文 时间:
2014-08-14 16:15:18
阅读次数:
235
[DecID] INTEGER(16) NOT NULL PRIMARY KEY ON CONFLICT FAIL,ON CONFLICT子句不是独立的SQL命令。这是一条可以出现在许多其他SQL命令中的非标准的子句。由于它并不是标准的SQL语言,这里单独介绍它。ON CONFLICT子句的语法在如...
分类:
数据库 时间:
2014-08-14 16:09:08
阅读次数:
224