Java Integer to intToDay(int d)

Here you can find the source of intToDay(int d)

Description

int To Day

License

Artistic License

Declaration

public static String intToDay(int d) 

Method Source Code

//package com.java2s;
//License from project: Artistic License 

public class Main {
    public static String intToDay(int d) {
        d = d % 7;/*from  www  . jav a  2s  .com*/

        switch (d) {
        case 0:
            return "Sun";
        case 1:
            return "Mon";
        case 2:
            return "Tues";
        case 3:
            return "Wed";
        case 4:
            return "Thurs";
        case 5:
            return "Fri";
        case 6:
            return "Sat";
        }
        return "Unknown Day: " + d;
    }
}

Related

  1. intToCodeString(int value)
  2. intToColour(int colour)
  3. intToCols(int i)
  4. intToColumnName(int column)
  5. intToDateString(int i)
  6. intToDegree(int storedInt)
  7. intToDigits(int n)
  8. intToDouble(int coordinate)
  9. intToDouble(int[] input)