Display a text message with JAVA?

Steps:-

1. Create a Java class.Make sure the first alphabet of the Class name is in Capitals.
2 .Create a Main() function.
3. Write the message inside the Main() function.

Note:-There can be multiple ways to display a message.
Example:-

class Displaymsg
{
    public static void main(String[] args ) 
    {
        System.out.println("Hello! This is a message");
    }
}
Display Text Java
Display Text Java

 

(Visited 2,746 times, 1 visits today)
Share with Friends :
Written by: