Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.122 :

Posted: Tue Mar 15, 2011 1:58 pm
by fuss

Code: Select all

Date d = Calendar.getInstance().getTime();
		DateFormat mydf = DateFormat.getDateInstance(DateFormat.LONG,
			Locale.FRANCE);
		System.out.println(mydf.format(d));
works as well as

Code: Select all

Date d = Calendar.getInstance(Locale.FRANCE).getTime();
		DateFormat mydf = DateFormat.getDateInstance(DateFormat.LONG,
			Locale.FRANCE);
		System.out.println(mydf.format(d));
There is nothing mentioned about the requirement of filling all the yellow fields.

Re: About Question com.enthuware.ets.scjp.v6.2.122 :

Posted: Wed Mar 16, 2011 7:18 am
by admin
Unless explicitly mentioned, you should fill all the targets.