title: Java code/library to merge continous CIDR blocks
body: <p>is there any java api or library which can be used to merge multiple continuous cidr blocks.</p>
  
  <p>For eg:</p>
  
  <pre><code>209.152.214.112/30
  209.152.214.116/31
  209.152.214.118/31
  </code></pre>
  
  <p>can be merged into <code>209.152.214.112/29</code>.
  But below cidr can not be merged since they are not continuous.</p>
  
  <pre><code>209.152.214.112/30
  209.152.214.116/32
  209.152.214.118/31
  </code></pre>