This assignment will help you to get started with NetBeans and using Java compiler: To begin, put a block comment at the beginning of your Java file (and every Java source file in the future) with the assignment number, assignment title, program author [your name], and the date it's due. Next, similar to the programs presented in the first chapter of the textbook, use System.out object to display the following information: Your first name The name of the operating system you are using The name of your project (or simply the folder name if not using the IDE) The name of the class that contains the main() method in your source file. Note: Your program should print each of the above items on a separate output line. "The name of the class that contains the main() method in your source file. public class MyClass { public static void main(String[]) { System.out.println( "Hi" ); } }
This assignment will help you to get started with NetBeans and using Java compiler:
-
-
To begin, put a block comment at the beginning of your Java file (and every Java source file in the future) with the assignment number, assignment title,
program author [your name], and the date it's due. -
Next, similar to the programs presented in the first chapter of the textbook, use System.out object to display the following information:
-
Your first name
-
The name of the
operating system you are using -
The name of your project (or simply the folder name if not using the IDE)
-
The name of the class that contains the main() method in your source file.
-
-
-
Note: Your program should print each of the above items on a separate output line.
- "The name of the class that contains the main() method in your source file.
public class MyClass {
public static void main(String[]) {
System.out.println( "Hi" );
}
}

Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images









