[Solved] How to change IP address from binary to dotted decimal notation? [closed]


you should get an integer from binary (pareseInt method) and contact all of them by “.”:

System.out.println(
        Integer.parseInt("00000011", 2)
                + "."
                + Integer.parseInt("10000000", 2)
                + "."
                + Integer.parseInt("11111111", 2)
                + "."
                + Integer.parseInt("11111111", 2)
);



Output: 3.128.255.255

6

solved How to change IP address from binary to dotted decimal notation? [closed]