- 博客(5)
- 收藏
- 关注
原创 java读取文件
public void test() throws Exception { String path ="D:\\a.txt"; //文件路径 FileInputStream in = new FileInputStream(path); BufferedReader br = new BufferedReader(new InputStreamReader(in, "UTF-8"));
2013-01-10 11:17:29 240
原创 java jdbc
public void test() { Class.forName("com.mysql.jdbc.Driver"); Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/hscloud","root","1234"); Statement ps
2013-01-09 16:37:10 200
原创 正则取中间值
String str = "// 河北省(130000000000)"; String pat=".+?\\((.+?)\\)"; Pattern pattern = Pattern.compile(pat); Matcher matcher = pattern.matcher(str); if (matcher.find()){ System.out.println
2013-01-09 16:34:58 1498
原创 iphone开发基础
消息 【obj method:args】 obj对象调用method方法传入args参数 @property (nonatomic, retain) NSArray *myArray; nonatomic指定属性在非多线程环境下 retain给变量一个指针,保存在内存中。 @synthesize myArray @synthesize提供默认的操作对象(object)
2013-01-06 22:58:16 257
原创 linux test
test 表达式 运算符 如果。。。。。则为真 string string不是null -b file file是块设备文件 -c file file是字符设备文件 -d file file是目录 -e file file存在 -f file file为一般文件 -g file file有设置它的setgid位 -h file file是一符号连接 -L fi
2013-01-05 17:20:36 227
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人