Identifier expected

webmasterbeta

New Member
What does an identifier expected error usually mean?My code is below. It looks like it should work but I get the error belowthe code when I run it.<snippet>import java.util.Calendar;import java.text.DateFormat;public class CzgCalendar {Date theDate = new Date();DateFormat theDateFormat = DateFormat.getDateTimeInstance(DateFormat.FULL,DateFormat.FULL, currentLocale);String dateOut = theDateFormat.format(theDate);System.out.println(dateOut);}</snippet><error>CzgCalendar.java:12: Identifier expected.dateFormatter = DateFormat.getDateInstance(DateFormat.DEFAULT,^1 error</error>
 
Back
Top