/** * Write a description of class Read here. * * @author (your name) * @version (a version number or a date) */ public class Encrypt { public void thing() { byte[] thing = new byte[255]; int[] thingEnc = new int[255]; int len; try { System.out.println("Enter the text you want encrypted: "); len = System.in.read(thing); System.out.print(len); for( int i = 0; i < len; i++) { thingEnc[i] = thing[i] + 5; thing[i] = (byte) thingEnc[i]; } System.out.write(thing, 0, len); }catch(Exception e){} } }