Search:

Type: Posts; User: chocolate_avocado

Search: Search took 0.12 seconds.

  1. Replies
    14
    Views
    738

    Re: Java Array Program Help

    Thank you so much! I think that I got it right!
  2. Replies
    14
    Views
    738

    Re: Java Array Program Help

    How would i go around printing the entire array[i] in the loop? Thank you, I will try to add comments
  3. Replies
    14
    Views
    738

    Re: Java Array Program Help

    there are two loops in order to run entire program multiple times. So since k is 10, the loop will complete 10 times and print out the 5 different arrays 10 times.

    --- Update ---



    for (int z...
  4. Replies
    14
    Views
    738

    Re: Java Array Program Help

    for this case, lets say n = 5 and k = 10. The foor loop is used to assign a random variable to every array "box" that exists. So, to put a random number in value[0]....value[5]
  5. Replies
    14
    Views
    738

    Re: Java Array Program Help

    Essentially, how do I run the mutate program once in the for loop, even though n will run the loop mutiple times



    for (int z = 0; z < k; z++) {
    for (int i = 0; i < value.length; i++) {...
  6. Replies
    14
    Views
    738

    Re: Java Array Program Help

    import java.util.Arrays;
    public class BeeMutate {
    public static int random;
    public static int n;
    public static int i;

    public static void main(String args[]) {
    n =...
  7. Replies
    14
    Views
    738

    Re: Java Array Program Help

    I'm not sure how to add the post tags but

    I'm trying to figure out how to change the value of the array in the mutate function and then use that new value to replace the value in the main static...
  8. Replies
    14
    Views
    738

    Java Array Program Help

    Hi, I was wondering whether anyone could help me with this program?

    Write a program that accepts two integer command-line arguments: x and k. THe program must construct an array of x random double...
Results 1 to 8 of 8