/** * Mengenal Bluej. * * @author M Thalut Nadhil * @version (1/2082020202) */ 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("Hello world"); } /** * 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

UTS PBKK A

Tugas 2 PBKK