How to print a statement without using semicolan in java
Answer Posted / amit sharma
public static void main(String[] args) {
if(System.out.printf("hi",null) == null)
{
System.out.println("byee");
}
}
In printf(String format, Object args), We also need to
specify argument.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How do you create a first line indent?
What is difference between java and java ee?
How to invoke external process in java.
How do I know if java is installed?
What is the advantage of preparedstatement over statement?
Explain about interrupt() method of thread class ?
give an example for encapsulation?
Write a java program to print fibonacci series?
What is flag in python?
Can we use synchronized block for primitives?
What are the types of casting?
Is java 11 paid version?
Why object class is super class for every class in java?
Can we split string with in java?
What is local class in java?