ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
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 > Programming Posted 06 Jun 2017 My Price 8.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! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* 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
     }
}

 What did I do wrong? with this code 

Answers

(11)
Status NEW Posted 06 Jun 2017 04:06 AM My Price 8.00

-----------

Not Rated(0)