Tugas 1 PBO B

Pada pertemuan pertama kelas PBO B kami diajarkan tentang pentingnya mengetik dengan 10 jari sebagai dasar dari seorang programmer. Lalu kami diajari cara mengunakan Blue J dengan membuat program Hello World

Program Hello World



Setelah itu, kami diberi tugas untuk membuat biodata sendiri menggunakan aplikasi BlueJ



Source Code :

 /**  
  * Write a description of class Helloworld here.  
  *  
  * @author (Fachry Amir)  
  * @version (0.1/20180903)  
  */  
 public class Helloworld  
 {  
   // instance variables - replace the example below with your own  
   private int x;  
   /**  
    * Constructor for objects of class Helloworld  
    */  
   public Helloworld()  
   {  
     // initialise instance variables  
     x = 0;  
     System.out.print("Tugas #PBOB-Tugas1\n");  
     System.out.print("===================\n");  
     System.out.print("Nama\t\t: Fachry Amir\n");  
     System.out.print("Kelas\t\t: PBO-B\n");  
     System.out.print("Alamat Rumah\t: Jalan Sukolilo Kasih no. 5, Surabaya\n");  
     System.out.print("Email\t\t: fachry2408@gmail.com\n");  
     System.out.print("Blog\t\t: fachrypbob0084.blogspot.com\n");  
     System.out.print("No. Hp/WA\t: 082311160603\n");  
   }  
   /**  
    * 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

Foxes and Rabbits

Tugas 3 PBO B

Tugas Remote TV