import java.io.*; import java.lang.*; public class siffer{ public static void main(String argumendid[]) throws IOException{ //muutujad int i, a=0, b=1, c=2, d=3; String taht; boolean go=false; BufferedReader sisse=new BufferedReader( new InputStreamReader(System.in) ); System.out.println("Vali tegevus:"); System.out.println("Kryptime 1 - Dekryptime 2"); String valik=sisse.readLine(); System.out.println("L2hte fail?"); String start=sisse.readLine(); System.out.println("Krypteeritud fail?"); String end=sisse.readLine(); if (valik.equals("1")){ a=0; b=1; c=2; d=3; go=true; }else if(valik.equals("2")){ a=2; b=3; c=0; d=1; go=true; }else{ go=false; System.out.println("Midagi l2ks vist kanni.. pahasti"); } if(go==true){ //tekitame ava teksti sisse lugeja BufferedReader tekst=new BufferedReader( new FileReader(start) ); //tekitame krüpteerituf faili kirjutamija PrintWriter valja=new PrintWriter( new FileWriter(end) ); String rida=tekst.readLine(); while(rida!=null){ for (i=0; i