Your First Program in Java: Printing a Line of Text - Java Language Basics

Java examples for Language Basics:Hello World

Introduction

Text-printing program.

Demo Code

public class Main  
{
   // main method begins execution of Java application
   public static void main(String[] args)
   {//w w w.  j av a 2s.  c o  m
      System.out.println("Welcome to Java Programming!");
   } 
}

Result


Related Tutorials