I need to import the enum values that is ,days, which i have created in separate enum under same package. What i am asking is that how to import the enum values into main program using Scanner..
package com.huo.kop;
import java.util.Scanner;
public class WeekDay {
public static void main(String[] args) {
Scanner sc=new Scanner (System.in);
System.out.println("Enter the day(only three letters with first letter being Capital : ");
String dayWeek=sc.next();
if(dayWeek.equals("Sat") || dayWeek.equals("Sun"))
{System.out.println("Yay, Its a Weekend!!!");
}
else
{System.out.println("Buah..Its still WeekDay!! Need to Work");}