Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28
  1. #21
    zidangus is offline Member
    Join Date
    Jun 2010
    Posts
    8
    Rep Power
    0

    Default

    Hate is a strong word my friend, Im a sorry I am not a fantastic programmer as you surely must be, so maybe you should please calm down, come on deep breaths in and out clear your mind of horrible cross posters. See I bet that feels a lot better, Have a nice day :D

  2. #22
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,436
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by zidangus View Post
    Hate is a strong word my friend, Im a sorry I am not a fantastic programmer as you surely must be, so maybe you should please calm down, come on deep breaths in and out clear your mind of horrible cross posters. See I bet that feels a lot better, Have a nice day :D
    I don't know you so I can't hate you; nor do I hate the fact that you're a lousy programmer; what I do hate is the fact that they want lousy programmers to do a job that is beyond their capabilities ...

    kind regards,

    Jos

  3. #23
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by zidangus View Post
    Hate is a strong word my friend, Im a sorry I am not a fantastic programmer as you surely must be, so maybe you should please calm down, come on deep breaths in and out clear your mind of horrible cross posters. See I bet that feels a lot better, Have a nice day :D
    It has nothing to do with your being a good or bad programmer and all to do with being inconsiderate. At least read and answer the responses in your cross-post. Else, why should people take time out to help you if you don't at least let them know that you are taking the time to read what they post?

  4. #24
    zidangus is offline Member
    Join Date
    Jun 2010
    Posts
    8
    Rep Power
    0

    Default

    I am thankful for any help that is given to me. It is appreciated. And I am sorry for cross posting as I was unaware it was so irritating to people and I do read all the replies to the posts I have. I may not understand them all but I do read them. I am just trying to ask people who are more experienced than me in java for help. So please show a little patience and tolerance, and please dont be offensive by saying you hate me Fubarable, JosAh is right you don't even know me. If you did you would know that I am not trying to irritate anybody I genuinely asking for some help.
    By the way thank you JosAh for the code you wrote it works and prints out the values in the terminal (linux), however I wish for the values to be printed in the text file "value-of-y.txt"
    Again thanks.

  5. #25
    m00nchile is offline Senior Member
    Join Date
    Feb 2010
    Location
    Ljubljana, Slovenia
    Posts
    470
    Rep Power
    5

    Default

    Reading from and writing to files must be one of the most asked questions for pretty much any programming language. Has it ever occured to you to go to a nifty little page called Google and typing in "java writing to file"? Or better yet, have you heard of a company called Sun? I hope so since they made Java, and I have a hunch that their website contains many guides, tutorials and examples on any questions and themes you might have.
    EDIT: Ok, I reread my reply and I came of as kind of a condescending prick. That was not my intention, was just trying to be sarcastic.
    Ever seen a dog chase its tail? Now that's an infinite loop.

  6. #26
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by zidangus View Post
    I am thankful for any help that is given to me. It is appreciated. And I am sorry for cross posting as I was unaware it was so irritating to people and I do read all the replies to the posts I have. I may not understand them all but I do read them.
    Then again please reply to the replies in your cross-post, not here. Your not replying is effectively ignoring all the folks who answered you, and again, no one likes to do work that is ignored. If you don't understand something in the posts, ask.

  7. #27
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,436
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by zidangus View Post
    I wish for the values to be printed in the text file "value-of-y.txt"
    Do this before my code runs:

    Java Code:
    PrintStream oldOut= System.out;
    System.setOut(new PrintStream(new FileOutputStream("yourfile.txt")));
    and do this after my code has run:

    Java Code:
    System.out.close();
    System.setOut(oldOut);
    ... and leave my code unchanged ...

    kind regards,

    Jos

  8. #28
    al_Marshy_1981 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Waterford, Ireland
    Posts
    748
    Rep Power
    5

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Math Program
    By stlboi in forum New To Java
    Replies: 8
    Last Post: 04-02-2009, 09:34 PM
  2. need help with math for a new program
    By gotenks05 in forum New To Java
    Replies: 13
    Last Post: 09-26-2008, 07:32 AM
  3. Java Math
    By levent in forum Java Tutorial
    Replies: 1
    Last Post: 05-12-2008, 09:03 AM
  4. java.lang.Math
    By eva in forum New To Java
    Replies: 2
    Last Post: 01-31-2008, 04:17 PM
  5. Help with math in java
    By fernando in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 06:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •