This file contains 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 main { | |
/** | |
* Try it out. | |
*/ |
This file contains 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
/** | |
* Utilities for checking whether a given two-dimensional array is | |
* a valid Sudoku solution. | |
*/ | |
import java.util.Scanner; | |
public class main { | |
/** |
This file contains 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
/** | |
* Utilities for checking whether a given two-dimensional array is | |
* a valid Sudoku solution. | |
*/ | |
import java.util.BitSet; | |
public class main { | |
/** | |
* Try it out. |
This file contains 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.*; | |
import java.util.Arrays; | |
import java.math.*; | |
public class ArrayStats | |
{ | |
//first method | |
public static double[] getArrayStats( double input[] ) | |
{ |
This file contains 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.Arrays; | |
public class InsertionSort{ | |
public static void main(String []args){ | |
int j; | |
int key; | |
int i; | |
int[] random_array = {10,5,11,194,-1,291,3,3,7,9}; | |
for (j = 1; j < random_array.length; j++) // start with second number | |
{ |
This file contains 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 HelloWorld{ | |
public static void main(String []args){ | |
System.out.println("Fee for 23 minutes"); | |
System.out.println(fee(23)); | |
System.out.println("Fee for 60 minutes"); | |
System.out.println(fee(60)); | |
System.out.println("Fee for 61 minutes"); | |
System.out.println(fee(61)); | |
System.out.println("Fee for 93 minutes"); |
NewerOlder