question: private void printOutDefinedIPs ( List < String > definedIPs ) { List < String > ipList = new ArrayList < > ( ) ; for ( String ip : definedIPs ) { if ( ip . indexOf ( ':' ) != - 1 ) { ipList . add ( "|- IPv6: " + ip ) ; } else { ipList . add ( "|- IPv4: " + ip ) ; } } Collections . sort ( ipList ) ; for ( String ip : ipList ) { log . info ( ip ) ; } }
target:  Prints out the given list of defined IP addresses. The example is: <p> |- IPv4: 192.168.1.6<br> |- IPv4: 127.0.0.1<br> |- IPv6: fe80:0:0:0:221:5cff:fe1d:ffdf%3<br> |- IPv6: 0:0:0:0:0:0:0:1%1