-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTestWeirdStuff.test
More file actions
207 lines (183 loc) · 4.38 KB
/
TestWeirdStuff.test
File metadata and controls
207 lines (183 loc) · 4.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
import java.util.*;
import java.lang.*;
//import drjava.testsrc.*;
public class TestWeirdStuff <T> extends Outer {
{
float f = j;
System.out.println(f);
ints = new int[5];
}
//public private int bar = 5;
//private protected public int foo() {
//return bar;
//}
// private public static void main(String[] a) {
// }
private float priv = 7;
static int j = 5;
static int Blah = 5;
TestWeirdStuff tws;
int [] ints;
int[] getS () {
{
int klj = 0;
}
// System.out.println(klj);
int x, y[];
System.out.println(3+ + + - -4);
// System.out.println(true? "asdf" : 1.0);
System.out.println((double)j);
System.out.println(super.foo());
// System.out.println(~false);
return ints = new int[] {1};
}
int[] getInts() {
return ints;
}
public void tryThis() throws IllegalArgumentException {
int i = j;
int j = 0;
int x[], y[][], z[][];
x = new int[5];
y = new int[5][];
z = new int[5][6];
System.out.println(Blah);
System.out.println(new Object());//new Event(new Object()));
class ABC {
public String toString() {
return "an ABC";
}
}
// System.out.println("lskj = " + lskj.toSing());// + " " + new lskj().toSing());
}
int i = foo();
public int foo() {
return (int)3.8;
}
public Vector xyz() {
super.xyz();
return null;
}
public <T> T getFirst(Vector<T> v) {
return v.elementAt(0);
}
private void doReplaceAll() {
for (ints = new int[3], ints[1]++; ints[0] < 3; ints[0] = ints[0] + 2, ints[0]++, ints[0]--) {System.out.println(ints[0]);}
String left = "(";
String newString = left.replaceAll("\\(", "");
{
final float fl = 5;
{
System.out.println("WOO");
System.out.println("HOO");
}
class aselijeij {
public aselijeij() {
System.out.println(fl);
}
}
}
// System.out.println(fl);
{ System.out.println("Yabber");
}
System.out.println("Jabber");
TestWeirdStuff<Integer> t = new TestWeirdStuff<Integer>(new Integer[0]);
Vector<Integer> v = new Vector<Integer>();
v.add(new Integer(5));
int[][] stuff = new int[][]{{1,2,3},
{4,5,6},
{7,8,9}};
System.out.println("getFirst(v).class = " + t.getFirst(v).getClass() + " getFirst(v) = " + t.getFirst(v));
int x = (- 3);
System.out.println((x) + +7);
boolean b = ((Boolean) new Boolean(true)).booleanValue();
int y = (x) + 3;
int z = (int) + 3;
// TestWeirdStuff tws = this();
}
TestWeirdStuff() {
boolean b = false;
System.out.println((false? false? new Integer(5) : new Integer(153) : new Integer(34)) instanceof Integer);
System.out.println(void.class);
}
TestWeirdStuff(int a, int b, String s, String c) {}
public static TestWeirdStuff callConstructor () {
TestWeirdStuff tws = new TestWeirdStuff(5,
8,
"abc",
"xyz");
return tws;
}
public static void main(String[] args) {
new TestWeirdStuff();
}
TestWeirdStuff(Integer[] ints) {
System.out.println("In constructor");
;
;
;
;
;
;
;
;
;
}
TestWeirdStuff(TestWeirdStuff t) {
tws = t;
}
interface InnerInterface {
int bar();
class DEF {}
}
class Blah extends Outer implements InnerInterface, WeirdInterface {
protected int i = 5;
public int foo() {
System.out.println("In Blah.foo()" + ints);
return i;
}
public int bar() {
final int z, y;
z = 7;
System.out.println("In Blah.bar()");
return z;
}
}
}
interface WeirdInterface {
// int ints = 2;
abstract int foo();
}
class Aiya extends TestWeirdStuff.Blah {
protected int i = 7;
Aiya() {
(new TestWeirdStuff()).super();
}
static class alskfj {}
}
abstract class Outer implements WeirdInterface {
// public Integer lskj = new Integer(0);
abstract int dk();
public int foo() {
return 3;
}
public Collection xyz() {
System.out.println("In Collection xyz");
return null;
}
}
class Foo extends Aiya.alskfj {
static class Bar {}
void test(String s) {}
void tester() {
test(new Object().toString());
}
}
//
//class Object {
//}
//class Vector {
// Vector() {
// System.out.println("making vector");
// }
//}