Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since:
Apr 2017
Last Sign in:
103 Weeks Ago, 2 Days Ago
Questions Answered:
4870
Tutorials Posted:
4863
Education
MBA IT, Mater in Science and Technology
Devry Jul-1996 - Jul-2000
Experience
Professor
Devry University Mar-2010 - Oct-2016
Category > ProgrammingPosted 06 Jun 2017My Price8.00
Welcome to Swagger Distribution
Hello, I am trying to compile a code. Everytime I go to execute this code there is an error. The code is easy and Im going crazy trying to figure out what mistake I made.
/* package whatever; // don't place package name! */
/* Name of the class has to be "Main" only if the class is public. */ class Ideone { public static void main (String[] args) throws java.lang.Exception { int day; int month; int year;
GregorianCalendar date = new GregorianCalendar();
day = date.get(Calendar.DAY_OF_MONTH); month = date.get(Calendar.MONTH); year = date.get(Calendar.YEAR);
System.out.println(“Welcome to Swagger Distribution!”); System.out.println(“Today’s date is "+(month+1)+"/"+day+"/"+year); // your code goes here } }