import java.net.*;
public class TampilkanHostName {
public static void main(String args[]) throws Exception {
InetAddress host = null;
host = InetAddress.getLocalHost();
System.out.println("Nama komputer anda : " + host.getHostName());
}
}
Tidak ada komentar:
Posting Komentar