Calendar.isWeekDateSupported() has the following syntax.
public boolean isWeekDateSupported()
In the following code shows how to use Calendar.isWeekDateSupported() method.
//w w w .j a va2 s.c om import java.util.Calendar; public class Main { public static void main(String[] args) { Calendar now = Calendar.getInstance(); System.out.print(now.isWeekDateSupported()); } }
The code above generates the following result.