Strings1="ja"; Strings2="va"; System.out.println(s1+s2=="java");//1处:false System.out.println("ja"+"va"=="java");//2处:true为什么1处结果是false而2处结果却为true呢,请教!
分类:
其他好文 时间:
2014-06-10 23:48:30
阅读次数:
243
基础语法就那老几样,很快可以说完【常量、变量】1.变量用
var,系统自动去判断类型,但变量再次赋值需保持数据类型一致 var a=50 相信用过js/java/C#的,对这个var都不陌生 使用 var
变量名:数据类型 = 变量值 这种格式可以指定具体的数据类型,比如要指定float时 va.....
分类:
其他好文 时间:
2014-06-10 22:12:46
阅读次数:
403
Given two sorted integer arrays A and B, merge
B into A as one sorted array.Note:You may assume that A has enough space (size
that is greater or equal...
分类:
其他好文 时间:
2014-06-10 20:44:02
阅读次数:
298
原题地址:https://oj.leetcode.com/problems/roman-to-integer/题意:Given
a roman numeral, convert it to an integer.Input is guaranteed to be within the
range f...
分类:
编程语言 时间:
2014-06-10 19:34:10
阅读次数:
255
原题地址:https://oj.leetcode.com/problems/integer-to-roman/题意:Given
an integer, convert it to a roman numeral.Input is guaranteed to be within the
range f...
分类:
编程语言 时间:
2014-06-10 17:06:11
阅读次数:
261
一次过 1 public class Solution { 2 public String
intToRoman(int num) { 3 StringBuffer res = new StringBuffer(); 4 if (num >
3999 || n...
分类:
其他好文 时间:
2014-06-10 16:12:12
阅读次数:
215
原题地址:https://oj.leetcode.com/problems/palindrome-number/题意:Determine
whether an integer is a palindrome. Do this without extra space.click to show
spo...
分类:
编程语言 时间:
2014-06-10 16:06:52
阅读次数:
286
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant...
分类:
其他好文 时间:
2014-06-10 07:42:16
阅读次数:
244
Two players, S and T, are playing a game where they make alternate moves. S plays
first.
In this game, they start with an integer N. In each move, a player removes one digit from the integer and p...
分类:
其他好文 时间:
2014-06-10 06:31:29
阅读次数:
302
CREATE [UNDO] TABLESPACE tablespace_name
[DATAFILE datefile_spec1 [,datefile_spec2] ......
[{MININUM EXTENT integer [k|m]
|BLOCKSIZE integer [k]
|logging clause | FORCE LOGGING...
分类:
数据库 时间:
2014-06-10 06:13:58
阅读次数:
282