method init in class Preferences cannot be applied to given types;found: no argumentsPreferences.init();在NetBeans中标记为红色在运行时,我会得到以下错误:
Exception in thread "main" java.lang.RuntimeException: Uncompila
我正在使用JB IntelliJ的想法,并试图创建一个程序,该程序使用sum()方法查找随机生成的数组的第一个和最后一个元素的和。我的问题是发生了错误,请帮助我。下面是我的代码:import java.util.Random; public static int sum(j = rand.nextInt(50);
System.out.println(su