/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package multifor; /** * * @author Student */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here for (int x=0; x<4; x++){ for(int y=4; y>2; y--){ System.out.println(x + " " +y); } if (x==1){ x++; } } } }