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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"definitions": { | |
"question3-9": { | |
"type": "object", | |
"properties": { | |
"answer": { | |
"type": "string", | |
"enum": [ | |
"Home improvements (General)", |
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
"questionA": { | |
"type": "object", | |
"properties": { | |
"answer": { | |
"type": "string", | |
"minLength": 1, | |
"enum": ["Yes", "No"] | |
} | |
} | |
} |
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
package core; | |
/* | |
* Implementation of BrickOrder class, implements Order interface. | |
* | |
* BrickOrder class allows storage of reference number and number | |
* of brings per each order. One BrickOrder class is instantiated | |
* for each order. | |
*/ |
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
package test; | |
import static org.junit.Assert.*; | |
import org.junit.Before; | |
import org.junit.Test; | |
import core.BrickOrder; | |
import core.OrderDB; | |
import core.OrderSystem; |
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
package core; | |
import java.util.ArrayList; | |
/* | |
* OrderDB class stores all of the orders created by OrderSystem | |
* within an ArrayList<BrickOrder> variable. The stored ArrayList | |
* can be returned to OrderSystem at any time for updating and | |
* information extraction. | |
*/ | |
public class OrderDB { |
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
package test; | |
import static org.junit.Assert.*; | |
import java.util.ArrayList; | |
import org.junit.Before; | |
import org.junit.Test; | |
import core.BrickOrder; |
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
package core; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
/* | |
* Design principles ideas to implement | |
* - Reduce responsibility of this class, move excess functionality into different classes | |
* -> Order builder class, instead of building orders within this class | |
* -> Printer class? |
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
class Challenge { | |
private static char[] chars; | |
private static int indexOfFirstNonRepeat; | |
/* | |
* @Param String input - String to be tested for first repeated character | |
* @Return String firstNonRepeatSensitive - String containing single character that represents first | |
* non-repeated character in input string (case-sensitive) | |
*/ | |
public static String firstNonRepeatingLetter(String 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
class Challenge { | |
private static String hashes; | |
private static String content; | |
private static int numHashes; | |
/* | |
* Parses input markdown into HTML header format | |
* @Param String markdown - String holding markdown string for converstion | |
* @Return String output - HTML format of input markdown |
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.List; | |
import java.util.Arrays; | |
class Challenge { | |
private static Integer[] input; | |
private static int inputLength; | |
private static String concatBinary; | |
private static int resultantValue; | |
NewerOlder