Perkenalan Dengan Java


/**
 * perkenalan
 *
 * @author (shafewa)
 * @version (1/20180903)
 */
public class yoks
{
    // instance variables - replace the example below with your own
    private int x;

    /**
     * Constructor for objects of class yoks
     */
    public yoks()
    {
        // initialise instance variables
        x = 0;
        System.out.print("Tugas PBO B tugas 1\n");
        System.out.print("*******************\n");
        System.out.print("Nama \t\t: Muh. Shafwatallah Wahid\n");
        System.out.print("Kelas \t\t: PBO B\n");
        System.out.print("Alamat Rumah \t: BTN Depag Blok B2 No 3 Makassar\n");
        System.out.print("Email \t\t: shafwatallah@gmail.com\n");
        System.out.print("Blog \t\t: https://cokinabalao.blogspot.com/\n");
        System.out.print("No HP/WA \t: 082290454511\n");
        System.out.print("Twitter \t: shafwatallah_\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