Minggu, 02 September 2018

PBOA- Tugas 1(3 September 2018)

Pada pertemuan kali ini saya medapatkan materi java dengan menggunakan BlueJ, berikut saya lampirkan screesnshot tugas hari ini beserta source codenya:

 /**  
  * Write a description of class Biodata here.  
  * Tugas PBOA 1 menuliskan data diri  
  * @author Shawn Timothy Mulya Putra  
  * @version 0.1/20180903  
  */  
 public class Biodata  
 {  
   // instance variables - replace the example below with your own  
   private int x;  
   /**  
    * Constructor for objects of class Biodata  
    */  
   public Biodata()  
   {  
     // initialise instance variables  
     x = 0;  
     System.out.println("Nama     : Shawn Timothy Mulya Putra");  
     System.out.println("Kelas    : PBO A");  
     System.out.println("Alamat Rumah : Jl. Marina Ema blok E no. 21 Surabaya.");  
     System.out.println("Email    : shawn.timothy26@gmail.com");  
     System.out.println("Blog     : 66108111103.blogspot.com");  
     System.out.println("No. HP/WA  : 081212222970");  
     System.out.println("Twitter   : @shawn26timothy");  
   }  
   /**  
    * 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