Just get your a() method declaration out of the main :
public class asdf {
public static void main(String[] args) {
a();
}
static void a() {
System.out.println("asdfff");
}
}
0
solved I get bugs in whatever i write on my editor using inteliJ in Java.(maybe an IDE problem?) [duplicate]