public class TestClass {
public static void main(String[] args) {
String s = new String(){
public String toString(){
return "new method";
}
}
System.out.println(s);
}
}
Login in to like
Login in to comment