public class Test {
public static void main(String[] args) {
int j = 2, y = 3, z = 10;
for (; j < 6; j++) {
y = (++y + z++);
System.out.println(y + z);
}
}
}
class TestClass {
public static void main(String args[]) throws Exception {
try {
int a = 5;
int b = 0;
int c = a / b;
System.out.println(c);
} catch (Exception e) {
System.out.print("There is an error");
} finally {
System.out.println("There is no error");
}
}
}
class con {
public static void main(String args[]) {
double a = 295.04;
int b = 300;
byte c = (byte) a;
byte d = (byte) b;
System.out.println(c + " " + d);
}
}
class Sample {
public static void main(String args[]) {
int a = 1;
int b = 2;
int c;
int d;
c = ++b;
d = a++;
c++;
b++;
System.out.println(a + " " + b + " " + c);
}
}