|
-
October 18th, 2006, 07:31 PM
#1
Help needed with code to scramble intermediate letters of a word
Hi all,
I am faced with a problem and was wondering if I could have assistance from a Java programmer of greater experience than myself.
I would like to make a java program that scrambles the intermediate letters of words in a string...
I would like each word in the string to consist of its original characters.
I would like the first and last letters unchanged and to retain the case in which they were written.
I would like the intermediate letters (excluding the frist and last characters) to be permuted randomly.
E.g The word "word" becomes "wrod".
The word "Programmer" becomes "Pogmmraer" or "Pmmrogarer".
Words can be arbitrarily short or long.
Any advice on even one part of the code would be GREATLY appreciated. Thanks so much.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|