PROGRAM: To display a message public class PrintSentence { public static void main(String args[]) { System.out.println(“Welcome to Java”); } } OUTPUT: Welcome to Java Download as PDF Related posts: Java addition program Java program to show use of If, For, Scanner Java program to enter marks Java program to enter marks, calculate sum, percentage, division etc. Java Program to use Nested Switch case Java program use of Switch case, break statement Java program use of Scanner class, nextInt() Java program use of If Else Java program 10 Java program While loop, input.nextInt() Java program type casting Java Scanner progam Java program arithmetic operators Java array program Java Inheritance Java constant Java Decrement operator Java Do While program Java program use of continue Java Nested Method Java program main function with object Javaprogram Graphic Applets Java program Applet mouse event handling Java program Applet digital clock Java program Applet image display Java program File handling create operation Define a class to declare an integer array of size n and accept the elements into the array. Define a class to declare an array of size 20 of the double datatype, accept the elements into the array and perform the following: Calculate and print the sum of all the elements. Java program for String, to uppercase, to equal, length of string Write a Java program for Buble sort. Write a Java program String to uppercase and count words startig with ‘A’