All pastes #414730 Raw Edit

Untitled

public java v1 · immutable
#414730 ·published 2007-03-29 06:55 UTC
rendered paste body
/** * 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){}    }}