isWeekDateSupported(): This method is available in java.util.GregorianCalendar class of Java.
Syntax:
boolean java.util.GregorianCalendar.isWeekDateSupported()
This method returns true indicating this GregorianCalendarsupports week dates.
Parameters: NA
Returns: true
Exceptions: NA
Approach
Java
import java.util.GregorianCalendar;public class GregorianCalendarisWeekDateSupported {public static void main(String[] args) {GregorianCalendar cal = new GregorianCalendar();System.out.println(cal.isWeekDateSupported());}}
Output:
true
No comments:
Post a Comment