Schreiben Sie ein Java -Programm, um die IP -Adresse zu drucken

import java.net.InetAddress;public class Main{public static void main(String args[]) throws Exception{InetAddress IP = InetAddress.getLocalHost();System.out.println("IP address= "+IP.getHostAddress());} }
Helpless Hawk