//HelloDate.java import java.util.*; public class HelloDate { public static void
ID: 3620627 • Letter: #
Question
//HelloDate.javaimport java.util.*;
public class HelloDate {
public static void main(String[] args) {
System.out.println("Hello, it's:");
System.out.println(new Date());
}
}
Following the HelloDate.java example above create a "hello, world" program that simply displays that statement. You need only a single method in your class (the"main" one that gets executed when the program starts ). Remember to make it static and to include the argument list, even though you don't use the argument list. Compile the program with javac and run it using java.
Explanation / Answer
please rate - thanks //HelloWorld.javaimport java.util.*;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.