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.

Results 1 to 6 of 6

Thread: Non-Repeating Integers

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    8
    My Mood
    Starving
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Non-Repeating Integers

    Script - Pastebin.com

    Okay, long code. How do I make it so that when the user selects try again, all the integers (With the exception of tries) gets reset?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Non-Repeating Integers

    when the user selects try again, all the integers (With the exception of tries) gets reset?
    Call the reset() method when the user selects try again.
    Post any code you have questions about here on the forum.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    May 2012
    Posts
    8
    My Mood
    Starving
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Non-Repeating Integers

    Quote Originally Posted by Norm View Post
    Call the reset() method when the user selects try again.
    Post any code you have questions about here on the forum.
    So much easier to use pastebin with 300+ lines of code.
    Thanks.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Non-Repeating Integers

    Can you make a smaller program to show your problem and post it here?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    May 2012
    Posts
    8
    My Mood
    Starving
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Non-Repeating Integers

    Quote Originally Posted by Norm View Post
    Can you make a smaller program to show your problem and post it here?
    I've already fixed it. :p

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Non-Repeating Integers

    Good work.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [SOLVED] Java- Non repeating random questions.
    By arkaneraven in forum Java Theory & Questions
    Replies: 4
    Last Post: June 15th, 2011, 09:55 AM
  2. [SOLVED] Writing Integers to .txt File; Returning Random Characters Instead of Integers
    By verbicidalmaniac in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: March 8th, 2011, 09:42 PM
  3. Repeating different parts of a program
    By swiftxjames in forum Loops & Control Statements
    Replies: 3
    Last Post: November 17th, 2010, 04:29 PM
  4. Determine the two smallest integers from a set of user input integers
    By bpontin in forum Loops & Control Statements
    Replies: 4
    Last Post: October 17th, 2010, 06:38 PM
  5. Repeating program issue
    By Bill_H in forum What's Wrong With My Code?
    Replies: 5
    Last Post: October 24th, 2009, 10:58 AM