摘要:
输出如下: 阅读全文
摘要:
有时候我们需要用到正则来截取我们想要的字符串,Matcher 下有find() 和 matches() 有何区别, find 方法判断的是 s 中是否包含给定正则,而matches 方法判断整个 s 是否符合 pattern, public static void main(String[] arg 阅读全文
摘要:
这里读取ftp文件的时候我们采用了sc.wholeTextFiles() 方法,若使用textFile() 方法,则会报错“java.io.IOException: Seek not supported”,ftp 的 InputStream 不支持seek(long:Long) 方法 阅读全文