Program Buat Urutan Tanggal Kalender di Java

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

package kalender;

/**
*
* @author komp6
*/
public class kalender {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here

int [][] kalender = new int [4][7];

for(int i=0; i<4; i++){
for(int j=0; j<7; j++){
kalender[i][j]=(1+j)+(7*i);
System.out.printf(“%5s”,kalender[i][j]+”   “);
}
System.out.println();
}

}
}

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s