Skip to content
Example1.java 831 B
Newer Older
Javier Costa's avatar
Javier Costa committed
package tfm.programs;

Javier Costa's avatar
Javier Costa committed
public class Example1 {

    public static void main(String[] args) {
        int x = 1;
        int y = 2;

Javier Costa's avatar
Javier Costa committed
//        if (x < y) {
Javier Costa's avatar
Javier Costa committed
            while (x < y) {
Javier Costa's avatar
Javier Costa committed
                y = x;

//                while(y < x) {
//                    y += x;
//                    x = y;
//
//                    while (x > 1) {
//                        y += 12;
//                        x = y;
//                    }
//                }
Javier Costa's avatar
Javier Costa committed

Javier Costa's avatar
Javier Costa committed
//            y = x + 1;
Javier Costa's avatar
Javier Costa committed
//        } else {
//            x = 4;
//            y *= x;
//        }
Javier Costa's avatar
Javier Costa committed
        int e = (Integer) x;

Javier Costa's avatar
Javier Costa committed
//        switch (x) {
//            case 1:
//                e = 2;
//                break;
//            case 2:
//                e = 3;
//        }
Javier Costa's avatar
Javier Costa committed