Re: Convert String to Object - Newbie Question
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Sep 2007 23:52:25 GMT
On Fri, 28 Sep 2007 07:22:45 -0700, Marion <mchew02@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.
see http://mindprod.com/jgloss/sscce.html
What is the error message? Did you look it up at
http://mindprod.com/jgloss/errormessages.html?
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- References:
- Convert String to Object - Newbie Question
- From: Marion
- Convert String to Object - Newbie Question
- Prev by Date: Re: encrypted source file support in jdk?
- Next by Date: Re: encrypted source file support in jdk?
- Previous by thread: Re: Convert String to Object - Newbie Question
- Next by thread: Identifier expected
- Index(es):
Relevant Pages
|