Results 1 to 1 of 1
  1. #1
    Dev23 is offline Member
    Join Date
    Feb 2011
    Rep Power

    Default A program where a user enters digits which returns words using arrays

    Okay so i have an assignment, where i have to create a user input for a user to enter 2 digits or less, and its suppose to return the corresponding number in words. I have to use arrays to do this. The program has to use three arrays: one that shows an index of the ones digits from zero to nine, a teens place for numbers ten to nineteen, and a two digits place, for numbers twenty to nintey. Each of these three methods (Mine are called "onesPlace", "printTeens", and "twoDigits") are called outside of "main" in messages that will ask the user for the digits and then print the results.


    After hours of thinking, i've finally figured this out.
    Last edited by Dev23; 03-18-2011 at 03:39 PM. Reason: I've figured out the answer myself after hours of trial and error

Similar Threads

  1. Replies: 0
    Last Post: 01-23-2011, 12:37 AM
  2. Replies: 5
    Last Post: 10-09-2010, 05:22 AM
  3. Boggle game - verify words entered by user
    By dragonwolf in forum New To Java
    Replies: 11
    Last Post: 11-30-2009, 04:18 AM
  4. Replies: 3
    Last Post: 08-19-2009, 03:54 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