Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Conversation Between copeg and javapenguin

11 Visitor Messages

Page 1 of 2 12 LastLast
  1. Corrrection:
    a+b should be (a+b), a+b*c should be (a+(b*c)), a+b*c/d will be (a+(b*(c/d))).

    For the toString().

    I think I'm recursively calling the toString() somehow.

    Any ideas of how to do it? I'm kinda strapped for time and also am very tired right now from an English project which will have to have a not-so-hot rough draft being turned in tomorrow. The programming one is due tomorrow at 11:59 p.m. but I have 3 classes tomorrow.

    All I think I need to get done now is the toString() and the buildTree().
  2. I've figured that when there is only one operator left or something, see posts, then I'm to set that one as the root.

    But I don't quite know how to work the build tree method.

    I can say that somehow for the toString()

    a
    I get

    (a)

    (a + b)

    I get
    (a+b)

    for a*b + c

    I get ((a*b) + (c))

    for (a+b) / (c%d)

    I get

    ((a+b) / (c%d))
  3. Please stop ignoring me!
  4. Cannot figure out what to do.
  5. I tried making more threads, though that takes on more space on the forums than the way I had been doing it.
  6. A word of advice - keep your posts on topic. I have noticed they quickly spin off on tangents and the original question gets lost in the mix. Most people, myself included, don't have the time to go back and read through every single post of the thread to understand what the question is or where the topic has headed. Be patient because most questions will not be answered immediately. Lastly, if you have not yet, read How to Ask Questions
  7. Nobody answers my posts.
  8. Never mind, this user is someone else. It looked very similar, and the two posts by the two different users were near each other within about a week.
  9. And also found a person using two user names. Not sure if that's legal. This was a separate person from the spammer.

    gonfreeks is using another id.

    Is that legal? if so, maybe I should try it to get responses to my posts faster.

    It's taking so long I'm thinking of cross posting.
  10. Well, I now just have printAlternate(), the one I keep calling alternateString() left.
Showing Visitor Messages 1 to 10 of 11
Page 1 of 2 12 LastLast