If every line has one or more commas, how can a comma be used to select the tf to put the line in?
Look at the methods in the String class. There are some that can be used to check if a String...
Type: Posts; User: Norm
If every line has one or more commas, how can a comma be used to select the tf to put the line in?
Look at the methods in the String class. There are some that can be used to check if a String...
What determines what location a line is to be displayed in?
When a line is read from the file, how will the program decide which tf to add the line to? Is there something in the line that will...
What determines what location a line is to be displayed in? See post#4 for some considerations.
Let's work on the problems one at a time. Start with this one:
The Scanner class is easy to use for reading lines from a file. Define a Scanner object to read from the file.
Write a loop to...
Which of the steps are you having problems with?
How do you decide which tf to add a String to? Can the tf be referenced from an array?
Inside a loop the Strings could be read from the file and...
I don't understand what the problem is. A String can be added to any number of textfields. There are no restrictions.
pseudo code:
read string
add string to tf1
add string to tf2
add string...
There is no restriction on how many different textfields that Strings can be added to.
There are listeners that can be added to the textfields that can be called when there are changes made.
The...