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

    Default 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!


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

    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

    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, 02:30 PM
  2. Ordering Inputted Java Values
    By MichaelSpame in forum New To Java
    Replies: 2
    Last Post: 07-16-2012, 05:05 AM
  3. Help (Java Eclipse loop using inputted number)
    By micolord in forum New To Java
    Replies: 12
    Last Post: 09-11-2011, 01:23 PM
  4. Replies: 1
    Last Post: 06-27-2011, 06:11 PM
  5. Help Creating A Graph From Inputted Data
    By adlb1300 in forum New To Java
    Replies: 6
    Last Post: 10-28-2007, 04: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