title: How to get last month/year in java?
body: <p>How do I find out the last month and its year in Java?</p>
  <p>e.g. If today is Oct. 10 2012, the result should be <code>Month = 9</code> and <code>Year = 2012</code>. If today is Jan. 10 2013, the result should be <code>Month = 12</code> and <code>Year = 2012</code>.</p>