Print Your Name
This program prints a personalized name to the console.
Problem Statement
Write a Java program that prints your name.
Source Code
| 1 | public class PrintName { |
| 2 | public static void main(String[] args) { |
| 3 | System.out.println("My name is Eduinq User"); |
| 4 | } |
| 5 | } |
Program Output
My name is Eduinq User
Explanation
The class PrintName contains a main method that uses println to print a string literal to the console. Changing the text inside println customizes the output, showing how simple output statements work in Java.