String class has a constructor that allows us to specify size of String as first parameter and character to be filled in given size as second parameter .
String s = String . valueOf ( x ) ; return s ; }