Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.04 KB | None | 0 0
  1. /*
  2. */
  3.  
  4. class Library{
  5.     void println(string s) {}
  6.     void print(string s) {}
  7.     void printi(int i) {}
  8.     int stoi(string s, int i) {}
  9.    int random(int n) {}
  10.    void exit(int n) {}
  11. }
  12.  
  13.  
  14. class TestClass extends MyClass { int a; }
  15.  
  16. class Quicksort {
  17.     int fieldz;
  18.     static void method1 (){
  19.        
  20.          MyClass.method ( - 4 + 2 [ new string[][][a] ], method_1( 4* -3)[ new QuickSort()]) ;
  21.          break ;
  22.          continue ;
  23.        
  24.          return;
  25.          return a;
  26.        
  27.          /* local variable test */
  28.          Quicksort[][][][][] quick ;
  29.         Quicksort[][][][][] quick_sort = "wow" [ a.length ] ;
  30.          int[] a =  new Class[][][this] ;
  31.        
  32.         /* while and if test */
  33.        
  34.          if ( 4.length ) if( null) return 5 ; else if("string") continue;
  35.        
  36.          while(  4.a4) a(4);
  37.        
  38.          /* call test */
  39.          (null).function ( this , this , 4 );
  40.           A.function(false);
  41.           a.function();
  42.           a.function(a.method[4]);
  43.           function( -4, - new int[null]);
  44.          
  45.          /* statement block */
  46.          {
  47.              {
  48.                  return -4 * 3 [ new int [4] ] ;
  49.                  return new int [4] [4];
  50.              }
  51.              a = 4;
  52.             continue;
  53.          }
  54.          {
  55.          string b;
  56.          }
  57.          {
  58.          }
  59.        
  60.           a.function(a.method[4]);
  61.        
  62.          /* expression test */
  63.        
  64.          /* location test */
  65.           a = bBb329_3;
  66.           a = this.a;
  67.           a = null [ null . length[3]];
  68.        
  69.          /* literal test */
  70.           a = null;
  71.           a = false;
  72.           a = true;
  73.           a = -31413134;
  74.           a = 3141413;
  75.           b = "this is a \\ \" string \n \t #$@()#@@!#@%@%#@ ";
  76.        
  77.          /* unop test */
  78.           a = ! 4 == 4;
  79.           b = 4 != ! null;
  80.           a = -!!-!new string[3];
  81.        
  82.          /* bin op test + assoc*/
  83.          a = 4 + 4;
  84.          a = -4 -4 ;
  85.          d= 4* 3 * 4 *2 -2;
  86.          m = 4%4%4 *3; /* ?? */
  87.          a = 2/3*2;
  88.          t = -2/-3;
  89.          a = a && b && c;
  90.          y = a && b || c && b;
  91.          g = a && b || c || b;
  92.          l  = 1 == 2 == !3 == -4 != 2;
  93.          a = 4 < 4;
  94.          a = 4 <= 4;
  95.          b = 3 > 2;
  96.          b = 3 >= 4;
  97.          c = 3 != 4;
  98.          d = true || false;
  99.          g = a == 4 <= 5;
  100.          t = a + b < 6;
  101.          t = a < 6 + b;
  102.          j = a < b <= 3;
  103.        
  104.         /* length access test */
  105.        
  106.         { b = null.length [3]; }
  107.         return 4. length + 4.length;
  108.         return -4.length; /* */
  109.         return (4).length;
  110.        
  111.         /* new test */
  112.         a = new Object[][][4];
  113.         b = new int[][2];
  114.         c = new Object(); /* empty constructor */
  115.         d = new Class ( );
  116.         { a =(new Class()) ; }
  117.        
  118.         /*  this */
  119.         a = this[this];
  120.         a = this.a;
  121.         a = this.length;
  122.        
  123.         /* call as expression */
  124.         func(null);
  125.         a = func(null);
  126.         a = func(null, null);
  127.         b = a.func(null, a);
  128.         c = CLASS.func(func, -null);
  129.        
  130.         /* location test */
  131.        
  132.         a = a;
  133.         (new Class()).b = a;
  134.         this[null] = "ayo";
  135.        
  136.        
  137.     }
  138.    
  139.     int field;
  140.    
  141.     /* methods and formals test */
  142.     static void method2(A a) {}
  143.     static int method3(B b, A a, int a) {}
  144.     static boolean method4() { int b; }
  145.     static string method5() { int k; }
  146.     static A method5() { A a = new A(); }
  147.     void method_6(int[][][][] a, boolean[] c, Class[][]d) { break; }
  148.     int method_7(){}
  149.     string method_8(){}
  150.     boolean method_9(){}
  151.     AClass method_10(Null [] []b){ A c;}
  152.    
  153.     /* field test */
  154.    
  155.     int field;
  156.     A fiel2, c , d ,b, d;
  157.     boolean k1, k2;
  158.     string s;
  159.    
  160. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement