<awangdev>387. First Unique Character in a String_2.java
public int firstUniqChar(String s) {
        if (s == null || s.length() == 0) return -1;
        for (int i = 0; i < s.length(); i++) {
            if (s.indexOf(s.charAt(i)) == s.lastIndexOf(s.charAt(i))) {
                return i;
            }
        }
        return -1;
    }
public int sample_funcname ( String var_1 ) {
  if ( var_1 == null || var_1 . length ( ) == 0 ) return - 1 ;
  for ( int var_6 = 0 ;
  var_6 < var_1 . length ( ) ;
  var_6 ++ ) {
    if ( var_1 . indexOf ( var_1 . charAt ( var_6 ) ) == var_1 . lastIndexOf ( var_1 . charAt ( var_6 ) ) ) {
      return var_6 ;
    }
  }
  return - 1 ;
}
