To find Subnet Mask and Network ID for given IP Address > Java Program
Computer Networks To find Subnet Mask and Network ID for given IP Address > Java Program import java.io.*; import java.net.InetAddress; public class subnet { public static void main(String[] args) throws IOException { System.out.println("ENTER IP:"); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String ip = br.readLine(); String checkclass = ip.substring(0, 3);