AndroidGuy - 9 months ago 59
Java Question

# calculate number of weeks in a given year

I would like to get the number of weeks in any given year. Even though

52
is accepted as a generalised worldwide answer, the calendars for
2015
,
2020
and
2026
actually have
53
weeks.

Is there any way that I can calculate this, or any functions that will help me out?

    Calendar cal = Calendar.getInstance();