Search:

Type: Posts; User: Elyril

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    4,823

    [SOLVED] Re: Chinese Zodiac array

    Okay.. yeah, I actually put


    zodiacYear = (year) % 12;
    System.out.println("You were born in " + year + " and your Chinese Zodiac is " + zodiacs[zodiacYear]);

    and I found the years for...
  2. Replies
    8
    Views
    4,823

    [SOLVED] Re: Chinese Zodiac array

    Yes, and every 12 years the animal repeats, so inputting a year, like 1993, and dividing by 12 shouldn't be a month. It was what was in the book, and I tested it before and it worked, but I just...
  3. Replies
    8
    Views
    4,823

    [SOLVED] Re: Chinese Zodiac array

    Wouldn't that be the same as doing


    System.out.println("Please enter the year you were born: ");
    year = input.nextInt();

    zodiacYear = year % 12;

    Since when they input the year, when...
  4. Replies
    8
    Views
    4,823

    [SOLVED] Chinese Zodiac array

    Hey, so I think I did the array right for this, but I'm trying to figure out how to get a certain String out of the array when the user inputs the year they were born. For example, if I input 1993,...
Results 1 to 4 of 4