This Java program prints "Welcome to java" when run. It imports the input/output package and defines a sample class with a main method that uses System.out.println to display the message on the console.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
46 views1 page
Java Program: Basic Print Example
This Java program prints "Welcome to java" when run. It imports the input/output package and defines a sample class with a main method that uses System.out.println to display the message on the console.