Search:

Type: Posts; User: newbie

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    13,679

    [SOLVED] Re: New line and StringBuilder

    Your advice worked great!
    I really do appreciate the time and help you gave me, this had been bothering me for ages.
    Thanks a million!
  2. Replies
    9
    Views
    13,679

    [SOLVED] Re: New line and StringBuilder

    So do StringBuilders send it segments?

    I took on what you said and tried all the following:
    A)added "NAMES" onto each arraylist element
    B)add Names before each String in the StringBuffer
    and i...
  3. Replies
    9
    Views
    13,679

    [SOLVED] Re: New line and StringBuilder

    A thread(with a runnable target) is constantly running checking for server responses:

    where line = in.readLine();


    else if (line.startsWith("NAMES")) {
    ...
  4. Replies
    9
    Views
    13,679

    [SOLVED] Re: New line and StringBuilder

    -Edit, by just printing out the StringBuilder with "\n" added, results do print out on new lines. So its bound to be a PrintWriter issue perhaps?
  5. Replies
    9
    Views
    13,679

    [SOLVED] Re: New line and StringBuilder

    while (arrayIterator.hasNext()) {
    buffer.append(arrayIterator.next().toString());
    //buffer.append(NEW_LINE);
    }
    ...
  6. Replies
    9
    Views
    13,679

    [SOLVED] New line and StringBuilder

    I've made a client-server chat program - many clients to one server.
    To end it off, I made a JTextArea to store information about all clients currently connected to the server.

    My method is not...
Results 1 to 6 of 6