// CharBug // // Character lacks a static toString method. package Bugs; public class CharBug { String Foo( char a ) { String b; // The static Character.toString method can't be found. b = Character.toString( a ); // this one does not work // The workaround is to use the instance method instead, with // a temporary Character object. b = new Character(a).toString(); // this one works fine return b; } }