摘要:
Java中遍历指定目录下的每一个文件,根据自己的需求对文件进行操作。 我这里是遍历文件夹下所有文件,删除占用磁盘空间大的视频文件: 代码如下: import java.io.File; public class DeleteVideo { public static void main(String 阅读全文
摘要:
方法引用实际上是Lambda表达式的一种语法糖 方法引用分为4类: 1.类名::静态方法名 public class Student { private String name; private int mark; public Student(String name, int mark) { th 阅读全文
摘要:
/** * Evaluates this predicate on the given argument. * * @param t the input argument * @return {@code true} if the input argument matches the predica 阅读全文
摘要:
public class Person { private int age; private String name; public Person(String name,int age) { this.age = age; this.name = name; } public int getAge 阅读全文