Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Identify valid CIDR in Java  RSS feed

 
Vivek Jain
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to identify if a CIDR is a valid CIDR or not in Java. Can anyone tell me how to perform this in Java?

Example: if I provide 12.12.0.0/8 as input to this program, then it should say that its a bad CIDR.

Thanks in Advance!
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Sockets and Internet Protocols forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!