Senin, 3 September 2018
- Berikut adalah class di Bluej :
- Source Code:
/**
* Write a description of class PBOBTugas1 here.
*
* @author Yasinta Yusniawati
* @version 03 September 2018
*/
public class PBOBTugas1
{
// instance variables - replace the example below with your own
private int x;
/**
* Constructor for objects of class PBOBTugas1
*/
public PBOBTugas1()
{
// initialise instance variables
System.out.println("Tugas #PBOB-Tugas1");
System.out.println("---------------------------------------------------------");
System.out.println("Nama\t\t: Yasinta Yusniawati");
System.out.println("Kelas\t\t: PBO B");
System.out.println("Alamat Rumah\t: Jl. Purworejo-Jogja, Purwodadi, Purworejo");
System.out.println("Email\t\t: yasintayusniawati104@gmail.com");
System.out.println("Blog\t\t: yasintayusniawati.blogspot.com");
System.out.println("No HP/WA\t: 0852 8884 1109");
System.out.println("Twitter\t\t: @yasintayusnia");
}
/**
* 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;
}
}
- Hasil Akhir :
Tidak ada komentar:
Posting Komentar