question: private String parseIpToPingFromPing ( String ping ) { String ip = "" ; if ( ping . contains ( PING ) ) { int indexOpen = ping . indexOf ( PARENTHESE_OPEN_PING ) ; int indexClose = ping . indexOf ( PARENTHESE_CLOSE_PING ) ; ip = ping . substring ( indexOpen + 1 , indexClose ) ; } return ip ; }
target:  Gets the final ip we want to ping (example: if user fullfilled google.fr, final ip could be 8.8.8.8)