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...
Type: Posts; User: Elyril
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...
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...
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...
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,...