Search:

Type: Posts; User: mike2452

Search: Search took 0.17 seconds.

  1. Replies
    3
    Views
    391

    array troubles

    Hi There
    Im having difficulty with sorting out an element in my code.

    I have an array with 6 spots that need to increment every time the user enters one of the figures.
    That part i have done
    ...
  2. Replies
    5
    Views
    514

    Re: My code is not working

    Hey Sean
    Is there a way of incrementing that first initial input without re doing the whole thing. I have tried everything I could but still no worky

    Thanks so much for your help
  3. Replies
    5
    Views
    514

    My code is not working

    Hi
    I was wondering if someone can help me out with a bit of code.
    I cant get my loop to work properly, in particular the incrementing of vehicle [0]
    Everytime I run the loop it skips vehicle[0]...
  4. Replies
    2
    Views
    473

    How can I make this shorter

    I want to make the following code shortened into a loop
    can anyone help me out

    while (usernumber >= 1 && usernumber <= 7)
    {
    usernumber = scanner.nextInt();

    if...
  5. Replies
    6
    Views
    590

    Re: Help with arrays

    Hi Norm
    I need the array so i can assign each animal on the array a counter variable (incrementing) so i can store the data given by the user. I will then need to show a summary of data recorded e.g...
  6. Replies
    6
    Views
    590

    Re: Help with arrays

    Hi Norm
    I have built the array
    Scanner scanner = new Scanner(System.in);
    Animal[0] = 1;
    Animal[1] = 2;
    Animal[2] = 3;
    Animal[3] = 4;
    Animal[4] = 5;
    Animal[5] = 6;
    Animal[6] = 7;
  7. Replies
    6
    Views
    590

    Help with arrays

    Hi there
    I have a scenario where a wildlife observer is looking for animals in the wild. The observer must enter a number 1-8 depending on the animal he sees. he enters the numbers one at a time and...
Results 1 to 7 of 7