The posted code's indentations is confusing. It looks like the call to the close() method is inside the loop.
You should always use {}s with loops to make the code clearer to read.
Type: Posts; User: Norm
The posted code's indentations is confusing. It looks like the call to the close() method is inside the loop.
You should always use {}s with loops to make the code clearer to read.
I think you should start at the beginning before trying to make changes to the posted code. Go through the steps you listed in post#7 and write the code that follows those steps. One change I would...
Sorry, I do NOT see any arrays in the code. Where is the array you are talking about?
Do you mean ArrayList? Are you asking how to go through the elements in an arraylist one by one and write...
Where is the array you are talking about? I do not see an array in the posted code.
Is that the contents of the line that is in the file? Does the file only have one line?
Is the program...
Can you explain what the problem is? What have you tried and what happened?
Where is the array that you are working with?
The code you posted does not make sense.
First there is an array of int values.
Then there is a List that hold Strings.
It doesn't show where anything is added to the list.
There is no definition...