<awangdev>Excel Sheet Column Number_2.java
public int titleToNumber(String s) {
        if (s == null || s.length() == 0) {
            return 0;
        }
        int num = 0;
        for (int i = s.length() - 1; i >= 0; i--) {
            int digit = s.charAt(i) - 'A' + 1;
            num += digit * Math.pow(26, s.length() - i - 1);
        }
        return num;
    }
public int sample_funcname ( String var_1 ) {
  if ( var_1 == null || var_1 . length ( ) == 0 ) {
    return 0 ;
  }
  int var_5 = 0 ;
  for ( int var_7 = var_1 . length ( ) - 1 ;
  var_7 >= 0 ;
  var_7 -- ) {
    int var_10 = var_1 . charAt ( var_7 ) - 'A' + 1 ;
    var_5 += var_10 * Math . pow ( 26 , var_1 . length ( ) - var_7 - 1 ) ;
  }
  return var_5 ;
}
