Most efficient way to convert a single char to a CharSequence
What's the most efficient way to pass a single char to a method expecting a CharSequence? This is what I've got: textView.setText(new String(new char[] {c} )); According to the answers given here , this is a sensible way of doing it where the input is a character array. I was wondering if there was a sneaky shortcut I could apply in the single-char case. textView.setText(String.valueOf(c)) Looking at the implementation of the Character.toString(char c) method reveals that they use almost the same code you use: public String toString() { char buf[] = {value}; return String.valueOf(buf); } For