View Single Post
Old 02-09-07, 11:22 AM   #1
Marvel_us's Avatar
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
Default Java Help: Reversing Letters in a String

I need to reverse letters in each string in a program that encrypts/decrypts messages in 3 ways. I've done two but can't figure out the last one. I'll just show you guys an example of what I need to do.

the quick brown fox
eht kciuq nworb xof
I can get it to reverse using the StringBuilder class method reverse() but that gives me: "xof nworb kciuq eht" which is the encryption for another class not this one.

Any suggestions? If anyone still isn't clear on what I need to do please let me know.
Main Rig
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU ||

60gb PS3 Owner
PSNid: Marvel_us
Marvel_us is offline   Reply With Quote