redirect 这个方法是在 CController 里定义的先来看下官方介绍redirect()方法public voidredirect(mixed $url, boolean $terminate=true, integer $statusCode=302)$urlmixedthe URL ...
分类:
其他好文 时间:
2014-07-19 17:38:39
阅读次数:
219
1. 字符串与整型的相互转换 String a = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int 2,得到当前方法的名字 public cl...
分类:
编程语言 时间:
2014-07-19 17:09:09
阅读次数:
206
Fence RepairTime Limit: 2000 MS Memory Limit: 65536 KB64-bit integer IO format: %I64d , %I64u Java class name: Main[Submit] [Status] [Discuss]Descript...
分类:
其他好文 时间:
2014-07-19 00:20:15
阅读次数:
183
int iValue = new Integer(strValue).intValue();String str = intObj.toString();int number = Integer.parseInt(str);public static Object read(String value...
分类:
编程语言 时间:
2014-07-18 18:24:40
阅读次数:
300
Crashing RobotsTime Limit: 1000 MS Memory Limit: 65536 KB64-bit integer IO format: %I64d , %I64u Java class name: Main[Submit] [Status] [Discuss]Descr...
分类:
其他好文 时间:
2014-07-18 18:16:05
阅读次数:
308
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers b...
分类:
其他好文 时间:
2014-07-18 15:17:26
阅读次数:
201
Not very hard to figure out the solution: splitting the list into 2 halves; reverse the 2nd half and interleave the two halves.But it takes some time ...
分类:
其他好文 时间:
2014-07-18 14:35:09
阅读次数:
214
泛型,类型安全机制。 好处: 1.将运行时期出现问题ClassCastException转移到了编译时期,方便解决问题,减少运行时期的问题,有利于程序的健壮性。 2.避免了强制转换的麻烦 泛型格式: ArrayList al = new ArrayList(); 若增加Integer类型的数据,在编...
分类:
编程语言 时间:
2014-07-18 14:13:04
阅读次数:
208
ParencodingsTime Limit: 1000 MS Memory Limit: 10000 KB64-bit integer IO format: %I64d , %I64u Java class name: Main[Submit] [Status] [Discuss]Descript...
分类:
其他好文 时间:
2014-07-18 12:17:40
阅读次数:
226
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
["2", "1", ...
分类:
其他好文 时间:
2014-07-18 11:19:56
阅读次数:
210