Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class _02_AllCapitals {
- public static void main(String[] args) {
- try {
- BufferedReader reader = new BufferedReader((new FileReader(new File("resources/Problem1"))));
- PrintWriter writer = new PrintWriter(new FileWriter(new File("resources/Problem1"),false), false);
- String line = reader.readLine();
- while (line != null){
- writer.println(line.toUpperCase());
- line = reader.readLine();
- }
- }
- catch (FileNotFoundException fnf){
- }
- catch (IOException ioe){
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement