Results 1 to 2 of 2
- 03-03-2013, 04:54 AM #1Member
- Join Date
- Mar 2013
- Rep Power
How to Create a String for each Syllable?
I am new to java, and I want to write a program that you write in your full name, and it jumbles it up.
The way it jumbles it up is by taking the first syllable of your first name, and the last syllable of your last name and it then swaps it around.
e.g. Joseph Turner = Snereph Turjo (I know, it's pretty weird, but that's the point!)
So, I know there is a way to detect syllables in a word, but I want to be able to create a string for each syllable. So, the first syllable's string would be something like Syl1, the second
syllable would be Syl2 and so on. And then I would do
System.out.println(Syl4 + Syl2 + " " + Syl3 + Syl1);
And that would work, right?
But how can I create the string for each syllable? Please help!
- 03-03-2013, 06:09 AM #2
Re: How to Create a String for each Syllable?
Also note that according to Java coding conventions, variable names should start with a lowercase letter: Code Conventions for the Java Programming Language: Contents
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
- By javazers in forum New To JavaReplies: 9Last Post: 09-02-2012, 03:30 PM
- By MichaelSpame in forum New To JavaReplies: 2Last Post: 07-16-2012, 06:05 AM
- By micolord in forum New To JavaReplies: 12Last Post: 09-11-2011, 02:23 PM
- By Swoyam in forum AWT / SwingReplies: 1Last Post: 06-27-2011, 07:11 PM
- By adlb1300 in forum New To JavaReplies: 6Last Post: 10-28-2007, 05:45 AM