摘要: 1 package IoDemo; 2 3 import java.io.File; 4 5 /** 6 * @Title:FileDemo2 7 * @Description:在指定的目录中查找文件 8 * @author Crazy-ZJ 9 * @data 2017年9月21日下午5:45:24 10 * @book 疯狂java讲义(第三版): 11 *... 阅读全文
posted @ 2017-09-22 10:15 南派周叔叔 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 1.public static final String separator 表示路径分隔符 "\" 2.public File(String pathname) 构造File类实例,要传入路径 3.public boolean createNewFile() 创建新的文件 4.public boo 阅读全文
posted @ 2017-09-21 16:37 南派周叔叔 阅读(260) 评论(0) 推荐(0) 编辑
摘要: package Interview; /** * Created by Jackson on 2017/9/18 10:55 * 因为java引入了中间缓存变量的机制,所以,j=j++可以换成如下写法 * temp=j; * j=j++; * j=temp; * 所以程序最终输出结果为 0 */ public class interview { public static... 阅读全文
posted @ 2017-09-18 11:32 南派周叔叔 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1. 下面代码的输出结果: package Interview; /** * Created by Jackson on 2017/9/18 9:39 */ public class Test{ static{ int x = 5; } static int x,y;//x等于0 y等于0 public static void main(... 阅读全文
posted @ 2017-09-18 10:04 南派周叔叔 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 修改文件模板,支持中文。 File -> Settings -> Editor -> File and Code templates -> python Scropt 在里面加上: # -*-coding:utf-8-*- 这样修改以后就支持中文输出了。 python单行注释使用#。 多行注释使用' 阅读全文
posted @ 2017-08-29 16:34 南派周叔叔 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 常用的类:BufferedReader BufferedWriter FileReader FileWirter String Integer java.util.Date,System,Class,List,HashMap 常用的包:java.lang java.io java.util java 阅读全文
posted @ 2017-08-07 10:50 南派周叔叔 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 安装过程中遇到一个小问题: start失败。。。 最后发现是卸载不够完全,再仔细清除一次 看看注册表 bulabula 阅读全文
posted @ 2017-08-06 12:02 南派周叔叔 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 解决这个错误需要: vi ~/.bashrc 进入以后把 .bashrc 给注释掉 就不会再报错了。 阅读全文
posted @ 2017-03-28 12:33 南派周叔叔 阅读(984) 评论(0) 推荐(0) 编辑
摘要: 1.首先,打开你的xshell客户端。 2.我用的是ubuntu 所以用 apt-get install lrzsz 命令来安装这个上传软件。 安装成功以后,可以使用rz上传,sz下载。 然后等待上传下载完成即可。 有相关问题欢迎交流。 阅读全文
posted @ 2017-03-25 14:21 南派周叔叔 阅读(2689) 评论(0) 推荐(0) 编辑
摘要: 关机命令: shutdown命令安全地将系统关机。有些用户会使用直接断掉电源的方式来关闭linux,这是十分危险的。因为linux与windows不同,其后台运行着许多进程,所以强制关机可能会导致进程的数据丢失﹐使系统处于不稳定的状态﹐甚至在有的系统中会损坏硬件设备。而在系统关机前使用shutdow 阅读全文
posted @ 2017-03-16 20:12 南派周叔叔 阅读(1685) 评论(0) 推荐(0) 编辑