User Profile

Collapse

Profile Sidebar

Collapse
adamrehill
adamrehill
Last Activity: Mar 24 '10, 06:46 AM
Joined: Mar 5 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I would just add

    int number = in.nextInt();

    after you state that the guess was too low or too high. So for example:

    Code:
    else if (number > correctNum)  
              { 
                  System.out.println("The number is too high, try again");
                  int number = in.nextInt();
              }
    and

    Code:
    else if (number < correctNum)
    ...
    See more | Go to post

    Leave a comment:


  • adamrehill
    replied to Need help please *urgent*
    in Java
    Just thought i'd let you know that i read the tutorial on exceptions (turns out it was one of the one's i had stumbled upon earlier today, and didn't realize it until i took a second glance at it) and the tutorial plus the last few things you guys added fixed my problems, so thanks for the help guys. sorry if i was a pain and didnt go to the tutorials right away, just got frustrating after trying to fix/find solutions online all day haha.
    ...
    See more | Go to post

    Leave a comment:


  • adamrehill
    replied to Need help please *urgent*
    in Java
    Alright, well thanks for you help. Sorry if i've wasted anyone's time. Like i said, i had read many other forum's tutorials, as well as several chapters in my text book, so it wasn't like i have been blind coding haha. however, i'll take a look in the tutorial.

    thanks
    See more | Go to post

    Leave a comment:


  • adamrehill
    replied to Need help please *urgent*
    in Java
    Unfortunatly still getting the same error, not having much luck here blah
    See more | Go to post

    Leave a comment:


  • adamrehill
    replied to Need help please *urgent*
    in Java
    Yea, reading the tutorial was on my next list of things to do, it's just ive been in bed sick with the flu and strep throat for four days, so reading tutorials when im all drugged up has been hard haha, and this assignment is due on friday so I was trying to find some quick help lol.

    Anyways i appreciate the help, but now that i've declared them as null im back to square one, and it's giving me the same error unreported exception java.io.IOExcep tion;...
    See more | Go to post

    Leave a comment:


  • adamrehill
    replied to Need help please *urgent*
    in Java
    hey, thanks for the reply. Yah at first i thought that was the problem, but once i change it so that it is declared outside the try, i get the error variable inputFile may not have been initialized so it appears as though it doesn't even enter the try :S

    any suggestions?
    See more | Go to post

    Leave a comment:


  • adamrehill
    started a topic Need help please *urgent*
    in Java

    Need help please *urgent*

    Hi there, this is my first post on the forum, and i'm relatively new to java. Anyways, i've just spent the last few hours looking for answers in my university textbook and the sun website, and im at a loss, so any help provided would be lovely, and thanks in advance.

    Anyways, my project is to create a "find and replace" program simliar to those in microsoft word, etc. The only problem i've ran into so far is that i get an...
    See more | Go to post
No activity results to display
Show More
Working...