/**
* @author lautturi.com
* Java example: print in java
*/
import java.util.*;
public class Lautturi {
public static void main(String[] args)
{
// Prints a string without line spacing
System.out.print("Hello!!");
// if the string is null,then print "null"
String str = null;
System.out.print(str);
// print a new line
System.out.println();
// Prints a string and then terminates the line.
System.out.println("Hello!");
}
}Sourcual.www:etturi.comoutput:
Hello!!null Hello!