Re: URGENT! Convert char[] array into a String
From: ZOCOR (someone_at_somewhere.com)
Date: 10/04/04
- Next message: Stefan Schulz: "Re: Very newbie question"
- Previous message: Sudsy: "Re: Question About Component.add()"
- In reply to: Alex Hunsley: "Re: URGENT! Convert char[] array into a String"
- Next in thread: Thomas Weidenfeller: "Re: URGENT! Convert char[] array into a String"
- Reply: Thomas Weidenfeller: "Re: URGENT! Convert char[] array into a String"
- Reply: Alex Hunsley: "Re: URGENT! Convert char[] array into a String"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 04 Oct 2004 11:37:02 GMT
"Alex Hunsley" <lard@tardis.ed.ac.molar.uk> wrote in message
news:10m2agu8n3bnd97@corp.supernews.com...
> ZOCOR wrote:
> >>ZOCOR wrote:
> >>
> >>>Hi
> >>>
> >>>How do you convert an array of characters (ie char[]) into a String?
> >>>
> >>>consider: char[] data;
> >>>
> >>>I tried: data.toString();
> >>>
> >>>and got a list of memory address when i want a string.
> >>>
> >>>also tried: String str = (String)data; //compile error
> >>>
> >>>Help Urgent
> >>
> >>1. This is not a 24-hour-a-day help desk.
> >>2. Review the javadocs, in particular the constructors for String
> >> (big hint: there's one which takes an argument of char[] )
> >
> >
> > It is interesting to note how all the old farts react to urgent
postings. It
> > seems as though the old farts have forgotten one of the important rules
of
> > conduct on a newsgroup. That is, if you do not have anything of value to
add
> > in response to a posting, DO NOT RESPOND. All you are doing is adding
more
> > noise to an already busy newsgroup. You have been warned.
> >
> > ZOCOR
>
> I wholeheartedly agree that people should respond with things of value.
> And pointing out that writing "urgent" is considered rude is valuable,
> because then you might not bother doing it next time.
If you honestly believe that posting a subject as "urgent" is rude then you
seriously have not been in newsgroup long enough to realise that it is
common practice. Whether you respond to a urgent posting is your perogative,
but making absurd comments is simply a reflection of your stupidity. That
said, continuing to respond to this thread will only prove me right.
> Also, I'll take this chance to point out that alienating the people you
> expect to help you is not the smartest of maneuvres.
>
> alex
Alex your not helping.
ZOCOR
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004
- Next message: Stefan Schulz: "Re: Very newbie question"
- Previous message: Sudsy: "Re: Question About Component.add()"
- In reply to: Alex Hunsley: "Re: URGENT! Convert char[] array into a String"
- Next in thread: Thomas Weidenfeller: "Re: URGENT! Convert char[] array into a String"
- Reply: Thomas Weidenfeller: "Re: URGENT! Convert char[] array into a String"
- Reply: Alex Hunsley: "Re: URGENT! Convert char[] array into a String"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|