File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Character shuffle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Character shuffle" Watch "Character shuffle" New topic

Character shuffle

Bart Oudhoff

Joined: Sep 13, 2010
Posts: 1

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.



pete stein

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:
subject: Character shuffle
It's not a secret anymore!