JAVA PROGRAMMING LAB(NEP)
1. Write a simple java application, to print the message, “Welcome to java” public class welcome { public static void main ( String args []) { System . out . println ( "welcome to java" ); } } 2. Write a program to display the month of a year. Months of the year should be held in an array. import java.util.Calendar ; public class dateDemo { private static String [] month ; public static void main ( String [] args ) { Calendar calendar = Calendar . getInstance (); String [] month = { "January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December" }; System . out . print ( "Current Month = " + month[ calendar . get ( Calendar . MONTH )]); } } 3. Write a program to demonstrate a ...