它说是创造一个同位体??
哈子是同位体???
谢谢!!!

解决方案 »

  1.   


    // homework Ch9 of Liuke, 
    //PSU ID: 990070826
    //IIIST ID: 109
    import java.io.*;public class DeCode {
    public static void main(String[] args) {
    BufferedReader in = null;
    PrintWriter out = null;
    try {
    if (args[0] != null) { in = new BufferedReader(new FileReader(args[0]));
    out = new PrintWriter(new BufferedWriter(new FileWriter(
    "LIUKE.txt")));
    int t;
    while ((t = in.read()) != -1) {
    t = t ^ 6;
    out.print((char) t);
    System.out.print((char) t);
    }
    } else {
    System.out.println("no files to cipher");
    }
    } catch (FileNotFoundException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } finally {
    try {
    if (in != null) {
    in.close();
    }
    if (out != null) {
    out.close();
    }
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    }
    }}
      

  2.   

    // homework Ch9 of Liuke, 
    //PSU ID: 990070826
    //IIIST ID: 109
    import java.io.*;public class Cipher {
    public static void main(String[] args) {
    BufferedReader in = null;
    PrintWriter out = null;
    try {
    if (args[0] != null) { in = new BufferedReader(new FileReader(args[0]));
    out = new PrintWriter(new BufferedWriter(new FileWriter(
    "cipher.txt")));
    int t;
    while ((t = in.read()) != -1) {
    t = t ^ 6;
    out.print((char) t);
    System.out.print((char) t);
    }
    } else {
    System.out.println("no files to cipher");
    }
    } catch (FileNotFoundException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } finally {
    try {
    if (in != null) {
    in.close();
    }
    if (out != null) {
    out.close();
    }
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    }
    }}