Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Java help on Alphabetical shift (http://www.go4expert.com/forums/java-help-alphabetical-shift-t18370/)

Chase_emge 6Jul2009 09:07

Java help on Alphabetical shift
 
Write a program that decodes secret messages read from a text file using an "alphabetic shift." So, for example, a shift might appear as:

ORIGINAL ABCDE...XYZ
SHIFTED. CDEFG...ZAB

You must:

1.) Read the encoded message from the attached MessageIn.txt file,
2.) Count the instance of each character in the file,
3.) The most common character in the message should be an "E". Use this information to calculate the amount of the shift,
4.) Print out the decoded message.

This is the java program that I need to write and I am not good with Java at all. If anybody could help me even a little it would be gratly appreciated.


All times are GMT +5.5. The time now is 15:28.