import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class HelloBufferedInputAndOutputStreams {
	private static String FILENAME = "test.txt";
	private static final int LINECOUNT = 5;
	
	public static void main(String...args) {
		System.out.println("Hello Buffered Input and Output Streams!");
		
		try (			
			BufferedOutputStream bos = new BufferedOutputStream(
				new FileOutputStream(
						new File(FILENAME)));
			) {
			
			for (int i = 0; i < LINECOUNT; i++)  {
				bos.write("Hello World\n".getBytes());
			}
			
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		try (			
			BufferedInputStream bis = new BufferedInputStream(
				new FileInputStream(
						new File(FILENAME)));
			) {
			
			while (bis.available() != 0) {
				System.out.print((char)bis.read());
			}
			
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

@@ -269,17 +269,20 @@
 reams %7B%0A
-%09
+    
 private 
@@ -318,17 +318,20 @@
 t.txt%22;%0A
-%09
+    
 private 
@@ -362,19 +362,21 @@
 NT = 5;%0A
-%09%0A%09
+%0A    
 public s
@@ -404,16 +404,17 @@
 g...
+ 
 args) %7B%0A
 %09%09Sy
@@ -409,18 +409,24 @@
 args) %7B%0A
-%09%09
+        
 System.o
@@ -481,33 +481,30 @@
 ams!%22);%0A
-%09%09%0A%09%09try (%09%09%09%0A%09%09%09
+%0A        try (
 Buffered
@@ -539,37 +539,32 @@
 redOutputStream(
-%0A%09%09%09%09
 new FileOutputSt
@@ -560,39 +560,32 @@
 ileOutputStream(
-%0A%09%09%09%09%09%09
 new File(FILENAM
@@ -589,31 +589,33 @@
 NAME)));
-%0A%09%09%09) %7B%0A%09%09%09%0A%09%09%09
+) %7B%0A%0A            
 for (int
@@ -645,16 +645,27 @@
 i++)
- 
  %7B%0A
-%09%09%09%09
+                
 bos.
@@ -695,35 +695,47 @@
 etBytes());%0A
-%09%09%09%7D%0A%09%09%09%0A%09%09
+            %7D%0A%0A        
 %7D catch (Fil
@@ -750,35 +750,44 @@
 dException e) %7B%0A
-%09%09%09
+            
 e.printStackTrac
@@ -783,34 +783,40 @@
 ntStackTrace();%0A
-%09%09
+        
 %7D catch (IOExcep
@@ -817,35 +817,44 @@
 OException e) %7B%0A
-%09%09%09
+            
 e.printStackTrac
@@ -862,29 +862,32 @@
 ();%0A
-%09%09%7D%0A%09%09%0A%09%09try (%09%09%09%0A%09%09%09
+        %7D%0A%0A        try (
 Buff
@@ -932,21 +932,16 @@
 tStream(
-%0A%09%09%09%09
 new File
@@ -956,15 +956,8 @@
 eam(
-%0A%09%09%09%09%09%09
 new 
@@ -977,23 +977,25 @@
 )));
-%0A%09%09%09) %7B%0A%09%09%09%0A%09%09%09
+) %7B%0A%0A            
 whil
@@ -1025,12 +1025,24 @@
 ) %7B%0A
-%09%09%09%09
+                
 Syst
@@ -1060,16 +1060,17 @@
 t((char)
+ 
 bis.read
@@ -1078,19 +1078,31 @@
 ));%0A
-%09%09%09%7D%0A%09%09%09%0A%09%09
+            %7D%0A%0A        
 %7D ca
@@ -1125,35 +1125,44 @@
 dException e) %7B%0A
-%09%09%09
+            
 e.printStackTrac
@@ -1166,18 +1166,24 @@
 race();%0A
-%09%09
+        
 %7D catch 
@@ -1204,11 +1204,20 @@
 ) %7B%0A
-%09%09%09
+            
 e.pr
@@ -1237,13 +1237,22 @@
 ();%0A
-%09%09%7D%0A%09
+        %7D%0A    
 %7D%0A%7D%0A

Update HelloBufferedInputAndOutputStreams.java