break berlabel


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package program;

/**
 *
 * @author untung
 */
public class BreakBerlabel166 {
    public static void main(String[] args) {
        int bil1=0, bil2=0;
        while(bil1<5){
            bil2=0;
            while(bil2<7){
                if(bil2==5)
                    break;
                System.out.println("bil1 "+bil1+" bil2 "+bil2);
                bil2++;
            }
                    bil1++;
        }

    }
}

0 komentar:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | SharePoint Demo