https://oj.leetcode.com/problems/valid-palindrome/http://blog.csdn.net/linhuanmars/article/details/22775045publicclassSolution{
publicbooleanisPalindrome(Strings){
{
if(s==null)
returnfalse;
if(s.isEmpty())
returntrue;
char[]chars=s.toLowerCase().toCharAr..
分类:
其他好文 时间:
2015-01-07 19:15:41
阅读次数:
149
经常我们会在资源文件(res/strings.xml)定义字符串,一维数组,那定义二维数组?直接定义二维数组没找到,可以间接定义。
其实很简单,看过用过一次就可以记住了,一维数组估计大家经常用到,但是二维数组应该比较少用,因为只能间接定义二维数组。
数组的定义:
数组就是一次性定义相同数据类型的一组变量数组定义。
数组的特点:
1.数组是相同数据类型的元素的集合。
2.数组中的各元素是...
分类:
移动开发 时间:
2015-01-07 15:03:55
阅读次数:
200
代码如下:Java代码/**HTML转义**/Strings=HtmlUtils.htmlEscape("helloworld");System.out.println(s);Strings2=HtmlUtils.htmlUnescape(s);System.out.println(s2);输出的结...
分类:
Web程序 时间:
2015-01-07 14:54:40
阅读次数:
300
国际化: ?NSLocalizedStringFromTable(@"string2", @"BDHString", @"修改的文字2"); ? ? ?说明:三个参数:1、key值,2、strings的文件名,3、备注,给自己看的。 具体国际化操作可以参考我的博客:http://...
分类:
其他好文 时间:
2015-01-07 13:20:56
阅读次数:
122
今天尝试修改Mantis提交bug时“严重性”字段的内容,将原来的内容修改为A,B,C...等级:在mantis/config_defaults_inc.php文件中查找$g_severity_enum_string字段,将其内容修改为:$g_severity_enum_string=‘10:A,20:B,30:C,40:D,50:E‘;在mantis/lang/strings_chinese_simplifi..
分类:
其他好文 时间:
2015-01-07 11:10:23
阅读次数:
196
--- a/idh.code/frameworks/base/core/res/res/values-es/strings.xml
+++ b/idh.code/frameworks/base/core/res/res/values-es/strings.xml
@@ -1710,5 +1710,5 @@
"Stación %1$s esta conectada"
"Staci...
分类:
其他好文 时间:
2015-01-07 11:01:03
阅读次数:
185
在android的sdk中有讲,“This is the interface for text whose content and markup can be changed (as opposed to immutable text like Strings).”这表明Editable 是个借口,...
分类:
移动开发 时间:
2015-01-07 10:45:21
阅读次数:
194
经常我们会在资源文件(res/strings.xml)定义字符串,一维数组,那定义二维数组?直接定义二维数组没找到,可以间接定义。其实很简单,看过用过一次就可以记住了,一维数组估计大家经常用到,但是二维数组应该比较少用,因为只能间接定义二维数组。数组的定义:数组就是一次性定义相同数据类型的一组变量数...
分类:
移动开发 时间:
2015-01-07 00:32:02
阅读次数:
214
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-01-06 23:07:00
阅读次数:
208
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
Hide Tags
Math String
...
分类:
其他好文 时间:
2015-01-06 18:06:01
阅读次数:
164