indexForDayByAddingDays() 공개 정적인 메소드

public static indexForDayByAddingDays ( String day, int days ) : int
day String
days int
리턴 int
예제 #1
0
 public bool hasFlightAtTime(FlightTime time, String day)
 { // returns true if time given is before flight
     if (this.departure.compareFlightTime(time) <= 0)
     {
         if (time.nextDay)
         {
             return(daysFlying[FlightTime.indexForDayByAddingDays(day, 1)]);
         }
         else
         {
             return(daysFlying[FlightTime.indexForDay(day)]);
         }
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 public static String dayByAddingDays(String day, int days)
 {
     return(FlightTime.days[FlightTime.indexForDayByAddingDays(day, days)]);
 }