comefrom: <gouthampradhan>string_CompareVersionNumbers_1.java
code: public int compareVersion(String version1, String version2) {
      StringTokenizer st1 = new StringTokenizer(version1, ".");
      StringTokenizer st2 = new StringTokenizer(version2, ".");
      while (st1.hasMoreTokens() & st2.hasMoreTokens()) {
        int token1 = Integer.parseInt(st1.nextToken());
        int token2 = Integer.parseInt(st2.nextToken());
        if (token1 > token2) return 1;
        else if (token2 > token1) return -1;
      }
      if (st1.countTokens() > st2.countTokens()) {
        while (st1.hasMoreTokens()) {
          if (Integer.parseInt(st1.nextToken()) > 0) return 1;
        }
      } else if (st2.countTokens() > st1.countTokens()) {
        while (st2.hasMoreTokens()) {
          if (Integer.parseInt(st2.nextToken()) > 0) return -1;
        }
      }
      return 0;
    }
masked: public int sample_funcname ( String var_0 , String var_1 ) {
    StringTokenizer var_2 = new StringTokenizer ( var_0 , "." ) ;
    StringTokenizer var_3 = new StringTokenizer ( var_1 , "." ) ;
    while ( var_2 . hasMoreTokens ( ) & var_3 . hasMoreTokens ( ) ) {
      int var_4 = Integer . parseInt ( var_2 . nextToken ( ) ) ;
      int var_5 = Integer . parseInt ( var_3 . nextToken ( ) ) ;
      if ( var_4 > var_5 ) return 1 ;
      else if ( var_5 > var_4 ) return - 1 ;
    }
    if ( var_2 . countTokens ( ) > var_3 . countTokens ( ) ) {
      while ( var_2 . hasMoreTokens ( ) ) {
        if ( Integer . parseInt ( var_2 . nextToken ( ) ) > 0 ) return 1 ;
      }
    }
    else if ( var_3 . countTokens ( ) > var_2 . countTokens ( ) ) {
      while ( var_3 . hasMoreTokens ( ) ) {
        if ( Integer . parseInt ( var_3 . nextToken ( ) ) > 0 ) return - 1 ;
      }
    }
    return 0 ;
  }
  