Re: Incerting space in concatinated string
From: mhandis (none_at_none.none)
Date: 10/18/03
- Next message: Paul Lutus: "Re: Java as a first language"
- Previous message: Paul Lutus: "Re: Incerting space in concatinated string"
- In reply to: Buster: "Incerting space in concatinated string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 18 Oct 2003 11:31:05 -0700
message = string1.concat(" ").concat(string2);
Or even better:
message = string1 + " " + string2;
Buster wrote:
> Hi, im a programming newbie and am having a bit of a problem with a practice
> program im working on.
>
> I have declared 2 strings in my program which allow the user to enter the
> string value on execution through 2 dialog boxes.
>
> The problem in having is when i concatenate the 2 stings using the concat
> method e.g. message = string1.concat(string2);
>
> when i output message it will output something like HelloWorld. Does anyone
> have any suggestions on how to add a space between the 2 strings
>
>
>
>
>
>
- Next message: Paul Lutus: "Re: Java as a first language"
- Previous message: Paul Lutus: "Re: Incerting space in concatinated string"
- In reply to: Buster: "Incerting space in concatinated string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|