1)
I have private methods of a class and I need to use variables created by these private methods in other private methods of the same class. Now, should I declare the variable outside of the method at the beginning of the class and be done? Or do I need a public, static in front of it?
2)
I keep getting an error with a stringtokenizer
Exception in thread "main" java.util.NoSuchElementException
and java.util.StringTokenizer.nextToken(Unknown Source)
my code at the line is as follows....
headerArray.add( Integer.parseInt( header.nextToken()) )
header is a stringtokenizer, headerArray is an arraylist of ints.
Only thing i can think of is its not finding the input file which it is in the correct directory
2007-09-27
04:26:36
·
2 answers
·
asked by
jay d
1
in
Computers & Internet
➔ Programming & Design
the error should read.
java.util.StringTokenizer.nextToken(Unknown Source)
2007-09-27
04:27:13 ·
update #1