Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    1,390

    Re: Can't compile program!

    You're making progress.
  2. Replies
    7
    Views
    1,390

    Re: Can't compile program!

    Where is myIntArray defined? When I use the Find function of the browser it does not find a definition for a variable with that name.

    Look at the tutorial: Arrays (The Java™ Tutorials > Learning...
  3. Replies
    7
    Views
    1,390

    Re: Can't compile program!

    If the numeric values range from 0 to 9 you could create an array with the values: "zero" to "nine" as elements in the array and use the int's value as an index into the array.

    See this thread:...
  4. Replies
    7
    Views
    1,390

    Re: Can't compile program!

    Use one of the String class's methods to convert a int value to a String.
    Or a quick and dirty way to do it is concatenate an empty String: ""+num

    Or use the int value in the println:
    ...
Results 1 to 4 of 4