This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MultiMergeSort { | |
private static int middle; | |
public static void mergeSort(int[] arr, int low, int high) { | |
int size = arr.length; | |
if (low<high) { | |
middle = (low + high) / 2; | |
mergeSort(arr, low, middle); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MultiMergeSort { | |
public static void mergeSort(int[] arr, int low, int high) { | |
int size = arr.length; | |
if (low<high) { | |
int middle = (low + high) / 2; | |
mergeSort(arr, low, middle); | |
mergeSort(arr, middle+1, high); | |
merge(arr, low, middle); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.BorderLayout; | |
import java.awt.Container; | |
import java.awt.GridLayout; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import javax.swing.*; | |
public class Minesweeper implements ActionListener |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.BorderLayout; | |
import java.awt.Container; | |
import java.awt.Dialog; | |
import java.awt.GridLayout; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import javax.swing.*; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import javax.swing.*; | |
import java.awt.GridLayout; | |
public class Minesweeper extends JFrame | |
{ JPanel board = new JPanel(); | |
public static void main(String[] args) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PowerBall { | |
public static void main(String[] args) { | |
double[] Powerball = new double[5];} | |
public Powerball() { | |
data[5] = | |
} |