Import Class: Java - Util.Scanner Chinesezodiac (

You might also like

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 2

I am very sorry Sir for this, I made a grave mistake to not learn the eclipse program

very well and clearly which prolonged my main focus on the activity.

import java.util.Scanner;

class ChineseZodiac {

public static void main(String[] args) {

int month;

int date;

Scanner sign = new Scanner void main(String[] args) {

System.out.println("Chinese Zodiac Signs");

System.out.print("Input Month and Date of birth ");

sign = vg.nextLine();

switch (dm)

case 1:

System.out.println("Your Zodiac sign is Capricorn");

break;

case 2:

System.out.println("Your Zodiac sign is Aquarius");

break;
}

case 3:

System.out.println("Your Zodiac sign is Pisces");

break;

case 4:

System.out.println("Your Zodiac sign is Aries");

break;

case 5:

System.out.println("Your Zodiac sign is Taurus");

break;

case 6:

System.out.println("Your Zodiac sign is Gemini");

break;

case 7:

System.out.println("Your Zodiac sign is Cancer");

break;

case 8:

You might also like