Gailer-net.de
java.io cheat sheet for SCJP:
(from book SCJP Sun Certified Programmer for Java 6 Exam 310-065)
Example for using these constructors:
How to read lines from a text file, display them and close all resources?
try{
BufferedReader reader= new BufferedReader (new FileReader(new File("file.txt")));
String line=null;
while( (line=reader.readLine())!=null){
System.out.println(line);
}
reader.close();
}catch(Exception e){}
For other package diagrams, check falkhausen.de
No comments:
Post a Comment