摘要: 1.用this调用成员变量和成员函数 阅读全文
posted @ 2013-11-06 22:25 LarryLawrence 阅读(308) 评论(0) 推荐(0)
摘要: 写了个while判断文件是否存在,存在的话改变命名。如下: class startButtonListener implements OnClickListener { int count = 0 ; @Override public void onClick(View v) { imageFilePath = destDirName + "/pic0.jpg"; File imageFile = new File(imageFilePath); while... 阅读全文
posted @ 2013-11-06 14:16 LarryLawrence 阅读(961) 评论(0) 推荐(0)
摘要: 编辑strings.xml的时候,Let's get started!报错说:“Apostrophe not preceded by \”.学单词:Apostrophe:[ə'pɑːstrəfi] n.撇号;单引号所以这里加上一个转义字符\就行了:Let\'s get started!(end) 阅读全文
posted @ 2013-11-06 13:13 LarryLawrence 阅读(387) 评论(0) 推荐(0)
摘要: import java.io.*;class a{ public static void main(String args[]) { createDir("c:/fuck"); } public static boolean createDir(String destDirName) { File dir = new File(destDirName); if (dir.exists()) { System.out.println("创建目录" + destDirName + "失败,目标目录已经存在"); ret... 阅读全文
posted @ 2013-11-06 10:06 LarryLawrence 阅读(601) 评论(0) 推荐(0)