Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. public class HelloWorld
  2. {
  3.     public static void main(String[]args)
  4.     {
  5.         // initialise instance variables
  6.         Profile profile = new Profile();
  7.         System.out.println("Profil Diri via Object");
  8.         System.out.println("Nama\t\t: " + profile.getNama());
  9.         System.out.println("Kelas\t\t: " + profile.getKelas());
  10.         System.out.println("NRP\t\t: " + profile.getNRP());
  11.         System.out.println("Email\t\t: " + profile.getEmail());
  12.         System.out.println("Institusi\t: " + profile.getInstitusi());
  13.         System.out.println("Jurusan\t\t: " + profile.getJurusan());
  14.         System.out.println("");
  15.     }
  16. }