if
if(x++) { y *= x; x--; else { y *= y; ++x; }
x
boolean
y
switch
switch(i > 5) { case '1' ++i; break; case "2": --i; case 3: i *= 5; break; default: i %= 3; }
for
for(i=0; j=0, i<n,++ j; i*="k)"{ k += i + j, }
while
while (x << 5) do { x = x + y; }
do
x << 5
continue
break
Throwable
finally
try
catch
Exception
Vector
import java.util.*; public class Question { public static void main(String[] args) { Vector v1 = new Vector(); Vector v2 = new Vector(); v1.addElement("123"); v1.addElement(v2); String s = (String)v1.elementAt(0); v1 = v2; v2 = v1; v1.addElement(s); } }
finalize()
class Question { public static void main(String[] args) { int i = 0; int j = 1; outer: while (i < j) { ++i; inner: do { ++j; if(j = = 3) break inner; else if(i + j > 5) break outer; System.out.print(j); } while (j < i); System.out.print(i); } } }
class Question { public static void main(String[] args) { int i = 0; int j = 1; outer: while (i < j) { inner: while (j < i + 4) { j *= 2; if(j = = 2) continue outer; else if(i + j < 7) continue inner; System.out.print(j); break outer; } System.out.print(i); ++i; } } }