Calendar Constructor Java toString
问题 What I'm trying to do is pass a date into the Calendar so that it will format the date ready for use with another constructor. So that i can make use of it later using the functions that calendar has provides. public class Top { public static void main(String[] args) { Something st = new Something(getCalendar(20,10,2012)); System.out.println(st.toString()); } public static Calendar getCalendar(int day, int month, int year){ Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, year);