class operator {
public static void main(String args[]) {
boolean a = true;
boolean b = !true;
boolean c = a | b;
boolean d = a & b;
boolean e = d ? b : c;
System.out.println(e);
}
}
public static void main(String[] args) {
Integer a = new Integer(4);
Integer b = new Integer(8);
Integer c = new Integer(4);
TreeSet ts = new TreeSet();
ts.add(a);
ts.add(b);
ts.add(c);
System.out.println(ts);
}
}
import java.util.*;
interface A {
public void method1();
}
class One implements A {
public void method1() {
System.out.println("Code");
}
}
class Two extends One {}
public class Test extends Two {
public static void main(String[] args) {
A a;
Two t = new Two();
a = t;
a.method1();
}
}