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 CompareSortingAlgorithm { | |
public static void main(String[] args) { | |
Long startTime; | |
Long finishTime; | |
Long elapsedTime; | |
Integer[] arrayUnordered = new Integer[] {30, 21, 25, -8, 4, 67, 91, 48}; | |
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 Calculator { | |
private Floor floor; | |
private Carpet carpet; | |
public Calculator(Floor floor, Carpet carpet){ | |
this.floor = floor; | |
this.carpet = carpet; | |
} | |
public double getTotalCost(){ |
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.HashMap; | |
import java.util.Map; | |
import java.util.Scanner; | |
/* | |
* Create TransactionException, DigitalWallet, and DigitalWalletTransaction classes here. | |
*/ | |
//---- My code ---- | |
class TransactionException extends Exception { | |
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.io.*; | |
import java.math.*; | |
import java.security.*; | |
import java.text.*; | |
import java.util.*; | |
import java.util.concurrent.*; | |
import java.util.function.*; | |
import java.util.regex.*; | |
import java.util.stream.*; | |
import static java.util.stream.Collectors.joining; |
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.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
import java.net.*; | |
import com.google.gson.*; | |
//------ My code ----------- | |
import java.io.InputStreamReader; |