Search:

Type: Posts; User: Stockholm Syndrome

Search: Search took 0.07 seconds.

  1. Replies
    10
    Views
    1,975

    [SOLVED] Re: GuessingGame problem

    All was needed was to change while(i<w.length.....) to while(i<w.length-1....) . Works perfectly now. Thanks for your help once again :)
  2. Replies
    10
    Views
    1,975

    [SOLVED] Re: GuessingGame problem

    Sorry I dont fully understand. i++ is the only thing present in the loop body, i'm not sure where you mean to put it

    static boolean member(int x, int[] w)
    {
    int i=0;
    while(i<w.length &&...
  3. Replies
    10
    Views
    1,975

    [SOLVED] Re: GuessingGame problem

    Thanks very much for the help I appreciate it :) Regarding the loops, the only reason i use a while loop is because my lecturer showed us that way & said its the simplest way :D Personally, I don't...
  4. Replies
    10
    Views
    1,975

    [SOLVED] Re: GuessingGame problem

    Sorry yes i understand what you mean. I was looking at another example I had done and thats what was embedded in the if statement. What could i use to determine if x is found? Would it be correct to...
  5. Replies
    10
    Views
    1,975

    [SOLVED] GuessingGame problem

    Hello, just wondering if anyone can help me with this problem. I had write a program which creates 100 random integers, each in the range 1 to 1000, inclusive. The user guesses a number and is told...
Results 1 to 5 of 5