This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Character shuffle Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Character shuffle" Watch "Character shuffle" New topic
Author

Character shuffle

Bart Oudhoff
Greenhorn

Joined: Sep 13, 2010
Posts: 1
Hello,

I'm trying to make a program that can shuffle characters in a word, except for the first and last character. I've already made the layout, filechoosers etc. in Swing, but i can't figure out how to write the method to separate the words when there is a space in the text. And i cant figure out how to shuffle the characters without shuffling the first and last character.

I hope someone can point me in the right direction.

Thanks,

Bart

pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Bart Oudhoff wrote:
I hope someone can point me in the right direction.

Sure, we'd love to help, but let's see the code from your best effort first. This way we can see just what you may be doing wrong.

Oh, and welcome to the Ranch!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Character shuffle
 
Similar Threads
Other Shuffling question
Arrays and exceptions!
Shuffle a string
how to check whether a word is a palindrome
how to print ascii characters on the screen