Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    11
    Views
    2,157

    Re: Save array to text file

    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.
  2. Replies
    11
    Views
    2,157

    Re: Save array to text file

    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...
  3. Replies
    11
    Views
    2,157

    Re: Save array to text file

    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...
  4. Replies
    11
    Views
    2,157

    Re: Save array to text file

    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...
  5. Replies
    11
    Views
    2,157

    Re: Save array to text file

    Can you explain what the problem is? What have you tried and what happened?

    Where is the array that you are working with?
  6. Replies
    11
    Views
    2,157

    Re: Save array to text file

    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...
Results 1 to 6 of 6