- 博客(4)
- 收藏
- 关注
转载 SFTP 命令
用途说明sftp命令可以通过ssh来上传和下载文件,是常用的文件传输工具,它的使用方式与ftp类似,但它使用ssh作为底层传输协议,所以安全性比ftp要好得多。常用方式格式:sftp 通过sftp连接,端口为默认的22,用户为Linux当前登录用户。格式:sftp -oPort= 通过sftp连接,指定端口,用户为Linux当前登录用户。格式:sftp @通过sftp连接,端口为默...
2019-01-17 11:13:48
3694
原创 Calendar中add(int field,int amount)的方法
如果是1则代表的是对年份操作,2是对月份操作,3是对星期操作,5是对日期操作,11是对小时操作,12是对分钟操作,13是对秒操作,14是对毫秒操作。例如:Calendar calendar = Calendar.getInstance(); calendar .add(5,1);这个则表示对日期进行加一天操作。待续。。。。...
2018-12-19 18:30:43
739
原创 正确使用Boolean.getBoolean()方法
请看下面的列子Boolean.getBoolean()解析 public class BooleanGet{> public static void main (String[] args){> String s1 = "true";> String s2 = new String( "true");> ...
2018-12-07 16:06:36
7619
原创 JAVA小测试(基础篇)
JAVA小测试(基础篇)1.Integer a=1000,b=1000;Integer c=100,d=100;System.out.println(a==b);System.out.println(c==d);false,true按照常理来说,这四个数都是新建的对象,应该是false才对,官方的解释是:由于小数使用的较多,所以把-128--127之间的数缓存了下来,这时引用的就...
2018-12-07 14:33:50
412
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人