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

Defines a class PrintName. Inside main, println prints the string literal. The output is customized by changing the string. Conclusion: Shows how to customize output by changing the text inside println.

Quick Links to Explore