Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    14
    Views
    743

    Re: Java Array Program Help

    use the Arrays class's toString method:

    System.out.println("an ID "+ java.util.Arrays.toString(theArrayName));
  2. Replies
    14
    Views
    743

    Re: Java Array Program Help

    What does the program do when it executes? Does it ever end or is it in an infinite loop?
    What is the purpose of the while loop?
    It should show an error because the println statement is not...
  3. Replies
    14
    Views
    743

    Re: Java Array Program Help

    What is the meaning of the contents of n and k?
    For example:
    if n contains the number of slots in the array. A better name would be arraySize.
    if k is the number of times to call mutate. A...
  4. Replies
    14
    Views
    743

    Re: Java Array Program Help

    What is their description? What is in n? What is in k?


    Why is it inside of a loop, if it should only be executed one time?
    What is the purpose of the loop?
  5. Replies
    14
    Views
    743

    Re: Java Array Program Help

    Take the problems one at a time:
    What problem do you have with the loop? I see 2 for loops, which is a problem?

    What are the values held in the two variables: n and k? A Variables should have...
  6. Replies
    14
    Views
    743

    Re: Java Array Program Help

    To wrap your code with code tags:



    **YOUR CODE GOES HERE**


    to get highlighting and preserve formatting.
  7. Replies
    14
    Views
    743

    Re: Java Array Program Help

    What have you tried?
    Please wrap all posted code in code tags.

    Do you have any specific java programming questions?
Results 1 to 7 of 7