Minggu, 02 September 2018

Tugas 1 PBO

Kuliah minggu ke-2 PBO, Saya belajar membuat program menggunakan bahasa java dan software yang digunakan yaitu BlueJ. Berikut hasil dan source code-nya.





 /**  


  * Write a description of class Perkenalan here.  
  *  
  * @author (your name)  
  * @version (a version number or a date)  
  */  
 public class Perkenalan  
 {  
   // instance variables - replace the example below with your own  
   private int x;  
   /**  
    * Constructor for objects of class Perkenalan  
    */  
   public Perkenalan()  
   {  
     // initialise instance variables  
     System.out.print("\t\tTugas #PBOA-Tugas1\n");  
     System.out.print("==============================================\n");  
     System.out.print("Nama\t\t: Ismail Arifin\n");  
     System.out.print("Kelas\t\t: PBO B\n");  
     System.out.print("Alamat Rumah\t: Keputih Gg IIC No.24\n");  
     System.out.print("Email\t\t: Ismail.a2803@gmail.com\n");  
     System.out.print("Blog\t\t: ismailarifin28.blogspot.com\n");  
     System.out.print("No HP/WA\t: 081241000939\n");  
     System.out.print("==============================================\n");  
     x = 0;  
   }  
   /**  
    * An example of a method - replace this comment with your own  
    *  
    * @param y a sample parameter for a method  
    * @return  the sum of x and y  
    */  
   public int sampleMethod(int y)  
   {  
     // put your code here  
     return x + y;  
   }  
 }  

Tidak ada komentar:

Posting Komentar

EAS PBO B

1. Rancangan interface image editor. 2. Class diagram dari image editor yang akan dibuat terdiri atas 10 class seperti berikut. ...