TUGAS 1 PBO B

Tugas 1 PBO B

Dipertemuan kali ini, saya akan mempelajari bagaimana mengcoding java menggunakan BlueJ. Nah berikut ini merupakan tampilan dari BlueJ yang telah saya kerjakan. 



Setelah melakukan compile dan run . Hasilnya akan terlihat seperti ini

Berikut merupakan source kode dari program java saya :
/**  
  * Belajar java hello World.  
  *  
  * @author (Krisna Badru Wijaya/05111740000048)  
  * @version (1)  
  */  
 public class pbo  
 {  
   // instance variables - replace the example below with your own  
   private int x;  
   /**  
    * Constructor for objects of class pbo  
    */  
   public pbo()  
   {  
            System.out.println("Tugas #PBOB-Tugas1 \n================");  
            System.out.println("Nama     : Krisna Badru Wijaya");  
            System.out.println("Kelas    : PBO-B");  
            System.out.println("Alamat Rumah : Keputih Gang Makam B-12");  
            System.out.println("Email    : kriyacrend@yahoo.com");  
            System.out.println("Blog     : http://hariits.blogspot.com/");  
            System.out.println("No HP/WA   : 085259731997(only WA)");  
            System.out.println("Twitter   : @BadruKrisna");  
   }  
   /**  
    * 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;  
   }  
 }  

Komentar

Postingan populer dari blog ini

EAS MPPL-C MONITORING LOGISTIK

PBKK - Ujian Tengah Semester 26 Maret 2020

Tugas PBO Remot TV