Write a method in Java to add a given prefix (as an integer) at the end of

Question:

Write a method in Java to add a given prefix (as an integer) at the end of an IP address to create a string representing the CIDR notation (“x.y.z.t/n”).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: