Mon, Nov 23, 2009 at 2:34 PM, Karl wrote:
>char a;
>a = 'B';
>a++;
>while (a < 'z') {
>mPanel.add( new Button("" + a) );
>}
>
>
>
> --- On Sun, 11/22/09, tedpottel wrote:
>
&
ln("'"+s1+"' = '"+s2+ "' = '"+s3+ "'");
// Note: Output is "'a' = 'a' = 'a'"
-Original Message-
From: Karl [mailto:karlk...@yahoo.com]
Sent: Tuesday, 24 November 2009 7:35 AM
char a;
a = 'B';
a++;
while (a < 'z') {
mPanel.add( new Button("" + a) );
}
--- On Sun, 11/22/09, tedpottel wrote:
> From: tedpottel
> Subject: [java ee programming] Trying to store a char in a string
Hello mate,
Here it goes.
char a = 't';
String charStr = new String(String.valueOf(a));
or simply:
String charStr = String.valueOf(a);
Hope that helps.
Regards,
TS
2009/11/22 tedpottel
> Hi,
> I'm trying to creat a row of buttons with the letters a to z in them,
> hear is my code
>
Hi,
I'm trying to creat a row of buttons with the letters a to z in them,
hear is my code
char a;
a='B';
a++;
while(a<'z')
{
String set= new String(a);
mPanel.add( new Button(set) );