Anybody there?
Type: Posts; User: javapenguin
Anybody there?
Almost there
package sorting;
import java.util.Arrays;
import java.util.Scanner;
public class Merge
{
Hey, I found part of the problem.
But why is it copying the value at index 0 of each array into index 1 whenever I use mergesort?
package sorting;
import java.util.Arrays;
import...
Also, why is it going in decreasing order?
Enter the number of elements in the first array.
1
Enter the value at index 0
-50
Enter the number of elements in the second array.
2
Enter the value at index 0
0
Enter the value at index 1...
I've gotten the code to slightly work better, though it's not doing what it's supposed to still.
Also, I have no clue how to call the sort(int[] A) method, which appears to just supposed to call...