Java examples for java.lang:String Format
Writes the specified string value, followed by the current line terminator, to the standard output stream.
//package com.java2s; public class Main { public static void main(String[] argv) throws Exception { String value = "java2s.com"; writeLine(value);/*from w ww. j ava 2 s.c o m*/ } /** * Writes the specified string value, followed by the current line * terminator, to the standard output stream. * * @param value * The value to write. */ public static void writeLine(String value) { if (value == null) return; System.out.println(value); } }