Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.net.*;
- public class getName {
- public static void main(String args[]) throws Exception {
- InetAddress host = null;
- host = InetAddress.getLocalHost();
- System.out.println("Nama komputer Anda: " +
- host.getHostName());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement