<awangdev>Restore IP Addresses_1.java
public boolean isValid(String str) {
    	if (str.charAt(0) == '0') {
    		return str.equals("0");
    	}
    	int num = Integer.parseInt(str);
    	return num <= 255 && num >= 0;
    }
public boolean var_0 ( String var_2 ) {
  if ( var_2 . charAt ( 0 ) == '0' ) {
    return var_2 . equals ( "0" ) ;
  }
  int var_10 = Integer . parseInt ( var_2 ) ;
  return var_10 <= 255 && var_10 >= 0 ;
}
