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

Data Communications and Networking

ISBN: 978-0073376226

5th edition

Authors: Behrouz A. Forouzan

Question Posted: