Skip to content

Instantly share code, notes, and snippets.

View emmaline261b's full-sized avatar

Emmaline261 emmaline261b

  • Wroclaw
View GitHub Profile
@emmaline261b
emmaline261b / MergeSort.java
Created August 17, 2021 22:00
Sorting Methods for int arrays (selection sort and merge sort)
import java.util.Arrays;
import java.util.Scanner;
public class MergeSort {
public static void main(String[] args) {
int lentghOfArray = 0;
Scanner input = new Scanner(System.in);
System.out.println("What's the size of the array?");
@Kwisses
Kwisses / MergeSortTutorial.java
Created October 23, 2017 04:52
MergeSortTutorial - [Java]
package mergesort;
class MergeSortTutorial {
// Helper method to print out the integer array.
private static void printArray(int[] array) {
for(int i: array) {
System.out.print(i + " ");
}