Kode JAVA

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

/**
*
* @author BASDAT
*/
public class Prak2 {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Praktikum2 rofid=new Praktikum2();
rofid.setNIM(“11018029”);
rofid.setNAMA(“Bambang”);

System.out.println(“NIM :”+rofid.getNIM());
System.out.println(“NAMA :”+rofid.getNAMA());

Praktikum2 rofid1 =new Praktikum2(“11018029″,”Dika”);

System.out.println(“NIM : “+rofid1.getNIM());
System.out.println(“NAMA : “+rofid1.getNAMA());

// TODO code application logic here
}
}

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com 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 )

Foto Google+

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

Connecting to %s