Assignemnt #36 Weekday Name

Code

    /// Name: DeeJay Cerezo
/// Period: 7
/// Program Name: Weekday Name
/// File Name: WeekdayName.java.java
/// Date Finished: 10/26/2015
 import java.util.GregorianCalendar;

public class WeekdayName
{
	public static String weekday_name( int weekday )
	{
		String result = "";

		if ( weekday == 1 )
		{
			result = "Sundas";
		}
		
        else if ( weekday == 2 )
		{
			result = "Morndas";
		}
       
        else if (weekday == 3)
        {
            result = "Tirdas";
        }
		
        else if (weekday == 4)
        {
            result = "Middas";
        }
       
        else if (weekday == 5)
        {
            result = "Turdas";
        }
       
        else if (weekday == 6)
        {
            result = "Fredas";
        }
        else if (weekday == 7)
        {
            result = "Loredas";
        }
        else if (weekday == 0)
        {
            result = "Loredas";
        }
        
    
        else
        {
            result = "error";
        }
        
   return result;
    }

    

Picture of the output

Assignment 36