最近工作中,经常需要比较2个对象的值。有个问题经常遇到,就是下面的2种情况。 public static void main(String[] args) { Integer a =11; Object b=a; System.out.println(b.equals("11"));//false String c ="11"; Object d = c; Syste...
分类:
编程语言 时间:
2014-12-02 16:40:11
阅读次数:
161
描述
In this problem, you are given two integers L and R, and your task is to calculate the sum of all the number's square between L and R(inclusive).
输入The first line contains an integer ...
分类:
其他好文 时间:
2014-12-02 11:55:51
阅读次数:
181
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:
其他好文 时间:
2014-12-01 17:31:54
阅读次数:
145
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Question:Given an integer, convert it to a r...
分类:
其他好文 时间:
2014-12-01 11:25:38
阅读次数:
191
创建测试表create table test_img(
id integer primary key,
name varchar2(32),
image blob
);
存储图片import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
imp...
分类:
数据库 时间:
2014-11-30 23:21:01
阅读次数:
301
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:
其他好文 时间:
2014-11-30 22:55:07
阅读次数:
272
Integer类中的.关于parseInt()方法的API文档. 返回的是int类型的关于valueOf()方法的API文档 返回的是Integer类型的.String类中的.
分类:
其他好文 时间:
2014-11-30 19:56:36
阅读次数:
204
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The first integer of each row...
分类:
其他好文 时间:
2014-11-30 16:56:56
阅读次数:
120
任务是判断可能出现的情况:1.空格2.空指针3.首字符是04.首字符是“+”或“-”5.判断边界条件,上界INT_MAX=2147483647,下届INT_MIN=-2147483648,小心判断 1 // 2 // main.cpp 3 // Longest Substring 4 // ...
分类:
其他好文 时间:
2014-11-30 14:07:58
阅读次数:
163
将罗马数字转换成整型数字。前面已经介绍过罗马数字了这里就不赘述了。...
分类:
其他好文 时间:
2014-11-30 00:49:06
阅读次数:
143