Where can the name be located on the line? Some state names are also names of people: georgia
Type: Posts; User: Norm
Where can the name be located on the line? Some state names are also names of people: georgia
Having more than one way to spell a state will make it much harder. Also are the names always correctly spelled?
What about the name "Li"? It has 2 letters.
Having two letters won't be a good enough way to identify the state code. What other criteria can be used to determine if a String is a state code?
You need to define how the code can look at a line and find the state in that line. There needs to be rules that control how the data file is created and how a String value for a state is added to...
Where is the state field located? Is there a way to describe its location so a computer program can consistently get to it? Is it always in the next to the last "column"? columns being delimited...
Sorry, I can't see or understand what questions you are asking.
I suggest you write the code one step at a time. Code a step, compile it, fix the errors, execute and fix the errors.
When the code compiles and executes without any errors, move to the next step....
Leave step 1) temporarily (it's a simple call to a class and method to allow the user to select a file) Hard code a file name for testing the rest of the code.
Step 2) needs further breakdown into...
Can you explain what the program is supposed to do? Make a list of the steps the program must do to accomplish the task.