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.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.function.Function; | |
import java.util.regex.PatternSyntaxException; |
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.List; | |
import java.util.Map; | |
import java.util.function.IntBinaryOperator; | |
/** | |
* @author /u/Philboyd_Studge on 12/6/2015. | |
*/ | |
public class Advent7 { |
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.ArrayList; | |
import java.util.List; | |
/** | |
* @author /u/Philboyd_Studge on 12/13/2015. | |
*/ | |
public class Advent14 { | |
List<Reindeer> deer = new ArrayList<>(); |
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 util; | |
public class Coordinate { | |
private int row; | |
private int col; | |
public Coordinate(int row, int col) { | |
this.row = row; | |
this.col = col; | |
} |
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 enumexample; | |
import javax.swing.*; | |
import java.io.IOException; | |
import java.nio.file.*; | |
import java.nio.file.attribute.BasicFileAttributes; | |
/** | |
* @author /u/Philboyd_Studge on 1/10/2016. | |
*/ |
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 trie; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Doubly Chained String/Character based-Trie | |
* @author /u/Philboyd_Studge on 1/13/2016. | |
*/ | |
public class DoublyChainedTrie implements STrie { |
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; | |
import java.util.Iterator; | |
import java.util.RandomAccess; | |
/** | |
* Dynamic Array class (based on java.util.ArrayList) | |
* for /r/JavaExamples - for tutorial purposes - | |
* @author /u/Philboyd_Studge on 11/18/2015. | |
*/ |
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 enumexample; | |
import java.util.*; | |
/** | |
* Cards class for playing cards. Uses simple integer-based system | |
* where the card face value is n mod 13 and the suit is n mod 4 | |
* @author /u/Philboyd_Studge on 3/26/2016. | |
*/ | |
public class Cards { |
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 fvcalc; | |
import javafx.event.ActionEvent; | |
import javafx.fxml.FXML; | |
import javafx.scene.control.ComboBox; | |
import javafx.scene.control.Label; | |
import javafx.scene.control.TextField; | |
import logic.FVLogic; | |
import logic.FVLogic.CompoundType; |
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 csv; | |
import java.lang.annotation.*; | |
/** | |
* @author /u/Philboyd_Studge on 4/1/2017. | |
*/ | |
@Inherited | |
@Target(ElementType.FIELD) | |
@Retention(RetentionPolicy.RUNTIME) |