import java.util.*; class Test{ interface Visitor{ public <T> void visit(T Value); } class MyVisitor implements Visitor{ List list = new ArrayList(); public <T> void visit(T value){ list.add(value); } }}
Standard input is empty
Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. spoj: The program compiled successfully, but main class was not found. Main class should contain method: public static void main (String[] args).
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!