x
? В-третьих, зачем лямбде блок в теле? В-четвёртых, лямбду надо вызвать.public static void main(String[] args) {
final int x= 10;
Supplier<Boolean> a = () -> (x%13) == 0;
System.out.println(a.get());
}
import
принимает имя импортируемого пакета, а не путь. Должно быть такimport com.opencsv.CSVReader;
class SomeClass {
void f() {
Log.e("TAG", "d");
}
private void spot() {
profiler = new MediaProfiler();
profiler.onRun(SomeClass::f);
}
}
public class MediaProfiler {
public void onRun(Runnable f) {
f.run()
}
}
-target
и -source
или настроек вашей IDE.