private interface Dfs {
void go(ArrayList<Integer> x, int u);
}
I define the implementation as anonymous class inside main.
And I use that interface by pass an Integer instance instead of int to the https://guides.github.com/features/mastering-markdown/second parameter u.
It runs inside the IDE well, but the output Main.java file strips away the definition (probably because it doesn't match anything being called inside the main).
I defined an interface:
I define the implementation as anonymous class inside main. And I use that interface by pass an
Integer
instance instead ofint
to the https://guides.github.com/features/mastering-markdown/second parameteru
. It runs inside the IDE well, but the output Main.java file strips away the definition (probably because it doesn't match anything being called inside the main).