comefrom: <awangdev>Count and Say_2.java
code: public String countAndSay(int n) {
          if (n <= 1) {
              return n + "";
          }
          String str = "11";
          int ind = 2;
          while (ind < n) {
              StringBuffer sb = new StringBuffer();
              char[] arr = str.toCharArray();
              int count = 1;
              int type = Character.getNumericValue(arr[0]);
              for (int i = 1; i < arr.length; i++) {
                  if (arr[i] == arr[i - 1]) {
                      count++;
                  } else {
                      sb.append(count + "" + type);
                      type = Character.getNumericValue(arr[i]);
                      count = 1;
                  }
              }
              ind++;
              sb.append(count + "" + type);
              str = sb.toString();
          }
          return str;
      }
masked: public String var_0 ( int var_1 ) {
    if ( var_1 <= 1 ) {
      return var_1 + "" ;
    }
    String var_6 = "11" ;
    int var_8 = 2 ;
    while ( var_8 < var_1 ) {
      StringBuffer var_10 = new StringBuffer ( ) ;
      char [ ] var_12 = var_6 . toCharArray ( ) ;
      int var_13 = 1 ;
      int var_17 = Character . getNumericValue ( var_12 [ 0 ] ) ;
      for ( int var_18 = 1 ;
      var_18 < var_12 . length ;
      var_18 ++ ) {
        if ( var_12 [ var_18 ] == var_12 [ var_18 - 1 ] ) {
          var_13 ++ ;
        }
        else {
          var_10 . append ( var_13 + "" + var_17 ) ;
          var_17 = Character . getNumericValue ( var_12 [ var_18 ] ) ;
          var_13 = 1 ;
        }
      }
      var_8 ++ ;
      var_10 . append ( var_13 + "" + var_17 ) ;
      var_6 = var_10 . toString ( ) ;
    }
    return var_6 ;
  }
  