Re: Java question about string class and char type

  • From: Andreas Stefik <stefika@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Wed, 7 Jul 2010 21:24:20 -0500

Not directly how you have it shown, but it's easy to just concatenate:

char charBlank = ' ';
String stringBlank = "" + charBlank;

There's lots of other ways to skin this cat as well.

Stefik

On Wed, Jul 7, 2010 at 9:18 PM, Gilbert Neiva <gneiva@xxxxxxx> wrote:
> Can you store a an object of type char in an object of class String?
>
> char charBlank = ' ';
> String stringBlank = charBlank;
>
> Gilbert Neiva
>
__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: