Help with code

I'm doing a program for school. We have to enter a word that will become encrypted using an array. And then decrypt the word after. This is what I have so far but not sure what to do now. Thanks in advance for your help.

import java.util.*;

publicclass Security{

String Unencrypted[] ={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};

String Encrypted[] ={"Y","Z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X"};

public Security(){

}

public String encrypt(String a){

returnnull;

}

public String decrypt(String a){

returnnull;

}

publicstaticvoid main(String [] args)

{

Scanner scan =new Scanner(System.in);

System.out.println("please enter a word: ");

String text = scan.next();

}

}

[3120 byte] By [x2wenty4xa] at [2007-11-27 1:49:24]
# 1
So do you know the requirements of your program ?I guess you would use the encrypt and decrypt array as maps to encrypting and decrypting.Good luck.
rym82a at 2007-7-12 1:14:39 > top of Java-index,Java Essentials,New To Java...