new to java need help with code pleaseeee.....

Hi guys and gals. I need a little help with a class project and dont know how to begin, so any kind of help will be apperciated.

I need to create a program that takes in 50 chars and will be ciphered by using the following alogrithm:

to each ASCII character will be added the value 4 ( so A will be E).

the result of the transformation will be display instead of the original sentence. also if the char is longer than 50 error message will pop.

also a button to input the sentence will be nice.

thanks <3

[546 byte] By [julia_zza] at [2007-11-27 4:55:23]
# 1

That's nice of you to post your homework assignment here. I wish you luck with it.

BTW, you'll probably get more help if you show that you've done some work, and then ask for help in a specific portion. Otherwise it looks as if you are asking someone else to do your homework, and we all know that that's not true.

petes1234a at 2007-7-12 10:10:20 > top of Java-index,Java Essentials,New To Java...
# 2
I'd use a for loop and ask the user for their String or characters(I didn't quite understand your question)Then Add 4 from the ASCII value and keep that char.You'd also have to use swing to create the panel/buttons for the GUI.
lethalwirea at 2007-7-12 10:10:20 > top of Java-index,Java Essentials,New To Java...