Java tutorial
import java.io.*; public class Main { public static void main(String[] args) { float f = 123.456f; PrintWriter pw = new PrintWriter(System.out); // print float pw.println(f); pw.println(987.765f); // flush the writer pw.flush(); } }