Results 1 to 3 of 3
  1. #1
    Adde1986 is offline Member
    Join Date
    Mar 2009
    Posts
    2
    Rep Power
    0

    Default Need help with a program that takes letters and then dumps them back out

    I need a program to do this described below I have no clue where to start or how to do it.

    Sample Output
    Please enter a letter A
    Please enter a letter b
    Please enter a letter D
    Please enter a letter f
    Please enter a letter G
    Please enter a letter H
    Please enter a letter L
    Please enter a letter Q
    Please enter a letter M
    Please enter a letter e
    In Original Order
    A
    b
    D
    f
    G
    H
    L
    Q
    M
    e
    Reversed - lowercase
    e
    m
    q
    l
    h
    g
    f
    d
    b
    a


    if anyone knows how to do this at all I would greatly appreciate it.

  2. #2
    Natrix is offline Member
    Join Date
    Mar 2009
    Posts
    40
    Rep Power
    0

    Default

    I would initalize a scanner then save every letter you enter into a char array and simply print them out line by line.

  3. #3
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default

    How do you plan on capturing the users input (the letters) ? I would suggest the Scanner class.
    Scanner (Java Platform SE 6)

    Luck,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

Similar Threads

  1. Which InputStream takes the least memory?
    By arnab321 in forum New To Java
    Replies: 9
    Last Post: 01-13-2009, 06:45 PM
  2. need scjp1.5 dumps
    By gopal_kc in forum Java Certification
    Replies: 0
    Last Post: 12-21-2008, 04:34 PM
  3. It takes very long time.....
    By iresha in forum Advanced Java
    Replies: 6
    Last Post: 05-11-2008, 03:31 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
  •