Facebook
From Abrupt Tortoise, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 271
  1. //class Top {
  2. // public Top(String s) {
  3. //       System.out.println("B");
  4. // }
  5. //
  6. //}
  7. //
  8. //
  9. //public class Bottom2 extends Top {
  10. //       public Bottom2(String s) {
  11. //               super(s);
  12. //               System.out.println("O");
  13. //       }
  14. //       
  15. //       public static void main(String[] args) {
  16. //               new Bottom2("c");
  17. //               System.out.println(" ");
  18. //       }
  19. //}
  20.        
  21. //class Clidder {
  22. //      protected void flipper() {
  23. //              System.out.println("Clidder");
  24. //      }
  25. //}
  26. //
  27. //public class Clidlet extends Clidder {
  28. //      public final void flipper() {
  29. //              System.out.println("Clidlet");
  30. //      }
  31. //     
  32. //      public static void main(String[] args) {
  33. //              new Clidlet().flipper();
  34. //      }
  35. //}
  36.  
  37. //public class TKO {
  38. //      public static void main(String[] args) {
  39. //              String s = "-";
  40. //              Integer x = 343;
  41. //              long L343 = 343L;
  42. //              if(x == 343)
  43. //                      s+= ".e1 ";
  44. //              if(x == L343)
  45. //                      s+=".e2 ";
  46. //              if(L343 > new Integer(350))
  47. //                      s+="fly ";
  48. //             
  49. //              System.out.println(s);
  50. //      }
  51. //}
  52.  
  53. //public class MyRunnable implements Runnable{public void run() {}}
  54.  
  55. //class Business {}
  56. //class Hotel extends Business {}
  57. //class Inn extends Hotel {}
  58. //
  59. //public class Travel {
  60. //      ArrayList<Hotel> go() {
  61. //              return new ArrayList<Hotel>();
  62. //      }
  63. //}
  64.  
  65.  
  66. //class X {void do1() {}}
  67. //class Y extends X {void do2() {} }
  68. //
  69. //class Chrome {
  70. //      public static void main (String[] args) {
  71. //              X x1 = new X();
  72. //              X x2 = new Y();
  73. //              Y y1 = new Y();
  74. //             
  75. //              ((Y)x2).do2();
  76. //      }
  77. //}
  78.  
  79. //List<List<Integer>> table = new ArrayList<List<Integer>> ();
  80.  
  81.  
  82. //class Emu {
  83. //      static String s="-";
  84. //     
  85. //      public static void main(String[] args) {
  86. //              try {
  87. //                      throw new Exception();
  88. //              } catch (Exception e) {
  89. //                     
  90. //                      try {
  91. //                              try {
  92. //                                      throw new Exception();
  93. //                              } catch (Exception ex) {
  94. //                                      s += "ic ";
  95. //                              }
  96. //                              throw new Exception();
  97. //                      } catch (Exception x) {
  98. //                              s += "mc ";
  99. //                      } finally {
  100. //                              s += "mf ";
  101. //                      }
  102. //              }
  103. //              finally {
  104. //                      s+= "of";
  105. //                     
  106. //              }
  107. //             
  108. //              System.out.println(s);
  109. //      }
  110. //}
  111.  
  112. //-ic mc mf of
  113.  
  114.  
  115. //interface Vessel {}
  116. //interface Toy{}
  117. //class Boat implements Vessel{}
  118. //class Speedboat extends Boat implements Toy {}
  119. //
  120. //public class Tree {
  121. //      public static void main(String[ ]args) {
  122. //              String s ="0";
  123. //              Boat b = new Boat();
  124. //              Boat b2 = new Speedboat();
  125. //              Speedboat s2 = new Speedboat();
  126. //             
  127. //              if((b instanceof Vessel) && (b2 instanceof Toy)) s+="1";
  128. //              if((s2 instanceof Vessel) && (s2 instanceof Toy)) s+="2";
  129. //              System.out.println(s);
  130. //      }
  131. //}
  132.  
  133. //012