Results 1 to 2 of 2
  1. #1
    vette427 is offline Member
    Join Date
    Sep 2010
    Rep Power

    Default string length HELP PLZ!!

    im a beginner to Java language:
    i need to prompt the user to enter their name. then i need the program to print that name once for every letter in the name. im not sure how to set this up though i do know i need to use a loop and the string length comes into play,anyone plz help. i also need to prompt the user user to enter an even number after their name loop ends and if they dont enter an even number the loop needs to continue asking for one until they do if anyone can help with these questions that would be helpful.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power

Similar Threads

  1. How can I restrict the length of string in JTextField?
    By in forum AWT / Swing
    Replies: 4
    Last Post: 07-29-2010, 05:34 PM
  2. Validating for length of String
    By Bascotie in forum New To Java
    Replies: 1
    Last Post: 10-11-2009, 11:45 AM
  3. Replies: 1
    Last Post: 01-14-2009, 05:19 PM
  4. [SOLVED] String Length issue.
    By ChrisMayhew in forum New To Java
    Replies: 7
    Last Post: 01-11-2009, 03:16 AM
  5. Replies: 2
    Last Post: 03-25-2008, 05:49 AM

Posting Permissions

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