Jim Kiley

Greenhorn
+ Follow
since Sep 09, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jim Kiley

You can have as many "dot" levels as you want. You can, for instance do

String carSubstring = p.getCar().getName().substring(5);

... or whatever else you want.

jk
19 years ago
After you change an environment variable in Windows, make sure to close and restart any other windows you might be using which need to take advantage of that environment variable. Those other windows (programs or the command window) receive the values of environment variables when they are created.

Hope this helps,

jk
19 years ago
Norm,

Did you mean parseInt(xxx) where you have parseIndex(xxx) there?

jk
19 years ago
First thing I'd do is pretty simpleminded: Put a counter in the loop and pipe out to System.err the value of the counter -- is it infinite-looping, or is it hanging?

jk
19 years ago
Put another way, main() isn't really part of your object (it is part of the class), so it doesn't really have access to any given object's internals. If you want to manipulate the object's internal fields, you need to create one instance of the object and then ask it to manipulate its own fields.

jk
19 years ago
It appears that you might be thinking you need to "hand off" all the output from main and give it to your parser, like handing a completed file folder to someone else. If that is the case, rethink the application -- consider creating a parser tool that you can instantiate inside of main, and have it process the file's strings as you go (within that while loop).

Don't know if that helps, but what the heck.

jk
19 years ago