Re: Convert String to Object - Newbie Question
- From: Marion <mchew02@xxxxxxxxxxx>
- Date: Tue, 02 Oct 2007 03:11:42 -0700
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
.
- Follow-Ups:
- Re: Convert String to Object - Newbie Question
- From: Roedy Green
- Re: Convert String to Object - Newbie Question
- Prev by Date: Re: Newbiw installation question
- Next by Date: Re: Keystroke validation in JTextField
- Previous by thread: Keystroke validation in JTextField
- Next by thread: Re: Convert String to Object - Newbie Question
- Index(es):
Relevant Pages
|