Array Dua Dimensi

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

package program;

/**
 *
 * @author Untung Subagio
 */
public class ArrayDimensi166 {
    public static void main(String[] args) {
        int [][] piksel = new int [5][3];
        piksel[0][1]=70;
        piksel[1][1]=18;
        piksel[1][2]=45;
        piksel[2][1]=75;
        piksel[3][1]=66;
        piksel[4][0]=89;
        piksel[4][2]=9;
        int baris,kolom;
        for (baris=0; baris<5; baris++){
            for (kolom=0; kolom<3; kolom++)
                System.out.println("piksel [baris][kolom]"+"  ");
            System.out.println("  ");
        }
    }
}

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