Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Character shuffle

 
Bart Oudhoff
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic