<awangdev>Excel Sheet Column Number_1.java
public int titleToNumber(String s) {
        if (s == null || s.length() == 0) {
            return 0;
        }
        int count = 0;
        for (char c : s.toCharArray()) {
            int digit = c - 'A' + 1;
            count = count * 26 + digit;
        }
        return count;
    }
public int sample_funcname ( String var_1 ) {
  if ( var_1 == null || var_1 . length ( ) == 0 ) {
    return 0 ;
  }
  int var_5 = 0 ;
  for ( char var_7 : var_1 . toCharArray ( ) ) {
    int var_10 = var_7 - 'A' + 1 ;
    var_5 = var_5 * 26 + var_10 ;
  }
  return var_5 ;
}
