Java Tutorial
- Runtime
- java 21.0.12
- Files
- 11 files · 4 KB
- Runs
- 39 runs
- Published
package sessionOne;/** * A simple program that prints a greeting with a name. * * <p>This is the entry point for the session-one exercise. */public class PrintName { /** * The main method, called by the JVM when the program starts. * * @param args command-line arguments (not used here) */ public static void main(String[] args) { // Print a fixed message to standard output, followed by a newline. System.out.println("My name is Rohit"); }}