Re: Convert String to Object - Newbie Question



On Sep 28, 1:52 pm, Roedy Green <see_webs...@xxxxxxxxxxxxxxxxxxxx>
wrote:
On Fri, 28 Sep 2007 07:22:45 -0700, Marion <mche...@xxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

The program looks something like this:
...
public void init (String[] array, int size){
.// assume array[0] is the first string read in from the text file
String dataString = array[0];
Node.setData(dataString);

This is a bit like asking a doctor to diagnose your prostate cancer
from the phrase "my prostate is sort of round and in an embarrassing
place."

The devil is in the details. You need to construct a tiny COMPLETE
program. The problem is almost never where you thought was, or else
you would have found it. It is in the part you did not reveal.
seehttp://mindprod.com/jgloss/sscce.html

What is the error message? Did you look it up athttp://mindprod.com/jgloss/errormessages.html?
--
Roedy Green Canadian Mind Products
The Java Glossaryhttp://mindprod.com

Yes, I did figure it out! I learned so much just on this one problem,
it's amazing and because I spent so much time on it, I don't think
I'll forget this anytime soon. :p

I tried really hard to read the Java docs on the syntax of their
commands, yep very hard. Manuals are not a new thing to me, but
because it's still new to me, it's a bit intimidating. I usually end
up doing a google search and reading everything that comes up hoping
someone will give an example which JavaDocs don't have for usage.
They should have a newbie Javadoc format. :p (kidding!)

Thanks, Lew, for your words of encouragement. At one point, I
seriously didn't think I was going to get past the problems I
encountered. (Btw, your name scared me the first time I saw it, it's
the name of my Professor for my algorithm class! Lol. First time I
saw it, I nearly fell off my chair.)

Roedy, you've been particularly helpful and patient in your
suggestions and postings. I ransacked your website for information
the other day on related subjects (and unrelated stuff like that
insult generator.) :) Cool stuff!

Thanks again guys!

-t

"When I grow up, I'm gonna help ppl on forums with their Java
questions too!" :p


.



Relevant Pages

  • Re: Microsoft: The New Commodore
    ... was completely surprised when I ran it for the first time as I also ... all for C/assembly and native compiled code but I don't hate Java ... it because learning to use the IDE is more complex that learning the ... simple graphics like plotting a single pixel on the screen. ...
    (comp.sys.cbm)
  • Re: Getting Started With C#
    ... a rewrite of the company's client billing system. ... I have programmed in various block-structured languages including ... Java did not go so well. ... If it is acceptable that whatever you write the first time will have to be completely torn apart and rewritten from scratch once it's done and needs to be modified later, then by all means jump right into that. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Microsoft: The New Commodore
    ... except for about a minute or maybe less, it's all database activity. ... was completely surprised when I ran it for the first time as I also ... all for C/assembly and native compiled code but I don't hate Java ... Mono is the open source open source version ...
    (comp.sys.cbm)
  • Re: C# vs. C++ Calling the overridden base class members from derived classes.
    ... This is the first time you have ever suggested anything of this ... > about second-guessing the standard. ... It is often possible to accomplish through design approach in one language ... If not, the intent is not to replace Java, it is to defend against Java by ...
    (comp.lang.cpp)
  • Re: exclude word on a regexp
    ... Roedy Green Canadian Mind Products ... The Java Glossaryhttp://mindprod.com ...
    (comp.lang.java.programmer)