Tugas #PBOA-Tugas1
Posan berikut ini untuk memenuhi tugas PBO A
Source code program :
Source code program :
/**
* Write a description of class PBOA here.
*
* @author (Nitama Nurlingga Yotifa)
* @version (20180903)
*/
public class PBOA
{
// instance variables - replace the example below with your own
private int x;
/**
* Constructor for objects of class PBOA
*/
public PBOA()
{
// initialise instance variables
x = 0;
System.out.println("Nama : Nitama Nurlingga Yotifa");
System.out.println("Kelas : PBO A");
System.out.println("Alamat Rumah : Purworejo, Jawa Tengah");
System.out.println("Email : nurlingganitama@gmail.com");
System.out.println("Blog : nurlingganitama.blogspot.com");
System.out.println("No. HP/ WA : 085290889598");
System.out.println("Twitter : nitamanurlingga");
}
/**
* 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;
}
}
Berikut ini adalah ouput dari program diatas:
Komentar
Posting Komentar