1.判断SD卡是否存在 返回true表示存在 1 /* 判断SD卡是否存在 返回true表示存在 */ 2 public boolean avaiableMedia() { 3 String status = Environment.getExternalStorag...
分类:
移动开发 时间:
2015-01-15 10:50:08
阅读次数:
193
方法:public static Map changeMap(String xmlDoc) { if (!xmlDoc.equals("") && (xmlDoc != null)) { // 创建一个新的字符串 StringReader xmlString = new StringRead...
分类:
其他好文 时间:
2015-01-15 10:49:05
阅读次数:
184
ZigZag Conversion输入一串字符,(由上到下再由下向上)Z字形循环排列后,逐行打印输出。例如:输入PAYPALISHIRING 输出PAHNAPLSIIGYIR【我的代码】string convert(string s,int nRows){ string::size_type ...
分类:
其他好文 时间:
2015-01-15 10:44:36
阅读次数:
158
1 public class Fruite{2 private String name;3 private int imageId;4 public Fruit(String name,int imageId){5 this.name = name;6 ...
分类:
其他好文 时间:
2015-01-15 10:39:03
阅读次数:
212
原文:从头开始学JavaScript (三)——数据类型一、分类
基本数据类型:undefined、null、string、Boolean、number
复杂数据类型:object
object的属性以无序的名称和值对的形式 (name : value) 来定义
二、详解
1、undefined:u...
分类:
编程语言 时间:
2015-01-15 10:38:45
阅读次数:
248
c++的面试中,实现一个string类是一道最常见的题目。首先,string是使用频率最高的类;另外,string类可以体现出一个c++程序员的基本水平。本文参考其他博客,阐述如何写一个string类。...
分类:
编程语言 时间:
2015-01-15 09:27:07
阅读次数:
222
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a ...
分类:
其他好文 时间:
2015-01-15 09:26:10
阅读次数:
160
public class DateUtils { private static String deaultDateTimeFormatFull = "yyyy-MM-dd HH:mm:ss"; private static String deaultDateFormat = "yyyy-MM-dd"...
分类:
其他好文 时间:
2015-01-15 00:26:48
阅读次数:
210
/**解压**/public class ExtractAllFiles { public static int extractAllFiles(String unZipfile, String afterunZipfile, String password) { try...
分类:
其他好文 时间:
2015-01-15 00:16:14
阅读次数:
331
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2015-01-14 22:44:53
阅读次数:
189