Results 1 to 2 of 2
  1. #1
    SparklyLlama is offline Member
    Join Date
    Mar 2013
    Posts
    2
    Rep Power
    0

    Default How to Create a String for each Syllable?

    Hi,

    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!

    Thanks,
    -SparklyLlama

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: How to Create a String for each Syllable?

    Quote Originally Posted by SparklyLlama View Post
    I know there is a way to detect syllables in a word
    There is? You'll want to start by defining that process, in small steps a computer can understand.

    Also note that according to Java coding conventions, variable names should start with a lowercase letter: Code Conventions for the Java Programming Language: Contents

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. How to check duplicate Strings inputted
    By javazers in forum New To Java
    Replies: 9
    Last Post: 09-02-2012, 03:30 PM
  2. Ordering Inputted Java Values
    By MichaelSpame in forum New To Java
    Replies: 2
    Last Post: 07-16-2012, 06:05 AM
  3. Help (Java Eclipse loop using inputted number)
    By micolord in forum New To Java
    Replies: 12
    Last Post: 09-11-2011, 02:23 PM
  4. Replies: 1
    Last Post: 06-27-2011, 07:11 PM
  5. Help Creating A Graph From Inputted Data
    By adlb1300 in forum New To Java
    Replies: 6
    Last Post: 10-28-2007, 05:45 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •