use the Arrays class's toString method:
System.out.println("an ID "+ java.util.Arrays.toString(theArrayName));
Type: Posts; User: Norm
use the Arrays class's toString method:
System.out.println("an ID "+ java.util.Arrays.toString(theArrayName));
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...
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...
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?
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...
To wrap your code with code tags:
**YOUR CODE GOES HERE**
to get highlighting and preserve formatting.
What have you tried?
Please wrap all posted code in code tags.
Do you have any specific java programming questions?