Method dalam Java
public class Hello {
static {
System.out.println("Boby Hendrik");
}
public static void main(String[] args) // Contoh statement method
{
Hello Hello=new Hello();
System.out.println("Berapa nomor NPM kamu :");
Hello=new Hello();
System.out.println("10107352");
}
}
static {
System.out.println("Boby Hendrik");
}
public static void main(String[] args) // Contoh statement method
{
Hello Hello=new Hello();
System.out.println("Berapa nomor NPM kamu :");
Hello=new Hello();
System.out.println("10107352");
}
}