Create an Eclipse Project called Lab1Part2. Create three classes within this project which will communicate with each other through method calls. Put ALL three classes into a package called cypher. Call the first class Encoder.java and the second class Decoder.java and the third class should be called CodeBreaker.java. Add a method to the Encoder.java class which will receive a String and return and encoded version of that String using a method called encode(String str). Add a method to the Decoder.java class called decode(String str) which will receive a String (in coded form) and decode it and return the decoded String. Finally test the encoding and decoding of the Strings using the CodeBreaker class which should at least encode and decode a String using the methods written in the Encoder and decode using Decoder. Fully Javadoc each of the classes and methods in the classes.
Aucun commentaire:
Enregistrer un commentaire