Search:

Type: Posts; User: The_Mexican

Search: Search took 0.08 seconds.

  1. Replies
    10
    Views
    1,923

    Re: String[] to String

    Thanks, it works now. :D
  2. Replies
    10
    Views
    1,923

    Re: String[] to String

    That makes it work. However, when I print the text, it strings all the lines in the text together, with no enters to separate lines.

    This is the text file:

    One
    Two
    Three
    Four
    Five
  3. Replies
    10
    Views
    1,923

    Re: String[] to String

    Hmm, technically I did read the file once, to get the value of num (which is just the number of lines in the file). However, I used two different readers to do this (see the code in my first post).
  4. Replies
    10
    Views
    1,923

    Re: String[] to String

    For some reason, when I do this, it prints out: "nullnull". I have no idea why.


    StringBuffer sb = new StringBuffer();
    String[] notesarr = new String[num];
    ...
  5. Replies
    10
    Views
    1,923

    String[] to String

    Hi, I would like to convert a String array (String[]) to a String which I can print. I don't know how to do this as there's no simple method like String s = stringArray.toString() or something as far...
Results 1 to 5 of 5