Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.Scanner;
- public class Unencrypter {
- public static void main(String[] args) throws IOException
- {
- File myFile = new File("output.txt");
- Scanner input = new Scanner(myFile);
- PrintWriter writer = new PrintWriter("unencrypted.txt");
- while (input.hasNext())
- {
- String line = input.nextLine();
- char[] unencrypt = line.toCharArray();
- for (int i = 0; i < unencrypt.length; i++)
- {
- unencrypt[i] -= 10;
- writer.print(unencrypt[i]);
- }
- writer.println();
- }
- writer.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement