Home » Java programs

Java program to print message without using semicolon

In this java program, we are going to learn how to print any message without using semicolon?
Submitted by IncludeHelp, on October 28, 2017

We have to write a program in java that will print the message without using semicolon.

Consider the program,
In this program, we are using System.out.printf() method within the if statement instead of condition section.

public class PrintWithoutSemicolon 
{
  public static void main(String[] args)
  {  // this condition is for printing the message without using semicolon
	 if(System.out.printf("This is Printing Program Without Semicolon")== null)
	 {
		 
	 }	  
  }
}

Output

This is Printing Program Without Semicolon





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.