Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Related technical and longer articles
Formatting to a fixed number of decimal places
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Java module J713
More Input and Output
Exercises, examples and other material relating to training module J713. This topic is presented on public courses Learning to Program in Java, Java Bootcamp, Java Programming for the Web

One of the questions that I m regularly asked on Java courses is how to format numbers to a certain number of decimal places - Java lacks the printf function ...
http://www.wellho.net/solutions/java-for ... laces.html  [longer article]
How do you sense if a BufferedReader in Java has reached the end of file? Like so many "things Java" it's easy enough to do ... once you find that vital ...
http://www.wellho.net/mouth/1239_End ... eader.html  [short article]
Learning to Program in Java - Writing Java programs for newcomers to programming. This course introduces you to programming in the Java programming language. ...
http://www.wellho.net/course/sjfull.html  [course]
Java Programming for the Web - Learn to write server- or client-side applications in Java. This course introduces you to the Java programming language, ...
http://www.wellho.net/course/jpfull.html  [course]
Java Bootcamp - An intense course on Java programming, Servlets and JSPs This course introduces you to the Java programming language, and its Internet ...
http://www.wellho.net/course/bjfull.html  [course]
// And print out cards! FileWriter demofile = new FileWriter("abc.123"); for (int k=0;k
http://www.wellho.net/resources/ex.php4?item=j713/snip3  [code sample]
// Well House Consultants, 2004. import java.io.*; import java.text.*; /** Formatted printing */ public class bratton { public static void main(String[] ...
http://www.wellho.net/resources/ex.php4?item=j713/bratton.java  [code sample]

This module covers reading and writing from and to files, other processes, network connections, keyboards and screens. Also how to find out if an object exists on your file system and if it does, to get more information about it.

This topic is presented on public courses Learning to Program in Java, Java Bootcamp, Java Programming for the Web

Examples from our training material
Javafgrep.java   Example for modification exercise
bratton.java   Formatted Printing
farleigh.java   Checking file status, reading and writing
snip1   Code snippet - reading from a file
snip2   File existence checking
snip3   Writing to a file
wellreader.java   Sample Input class from earlier courses and modules
Background information
This module is available under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
Overview.
The Wellreader class.
Input/output from basics.
Streams.
Writing to a file.
Formatted output.
Reading from a file.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Java,Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 700 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.


© WELL HOUSE CONSULTANTS LTD., 2009: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho