How to get previous year from the result of current year in java?
<pre><code>public class CalendarCal {

    public static void main(String[] args) {
        Date date = new Date();
        SimpleDateFormat simpleDateformat = new SimpleDateFormat("yy");
        String m = simpleDateformat.format(date);
        System.out.println("Year:" + m);
        int year = Calendar.getInstance().get(Calendar.YEAR) % 100;
        System.err.println(year);
    }
}
</code></pre>

<p>I am able to reterive the current year from this. How can I get the last (previous) year with help of utility? I don't want to do a calculation like <code>currentyear - 1</code> or like that.</p>
