0
0
Fork 0

Update the Java runner to allow executing the Generic variant

This commit is contained in:
Oliver Akins 2022-12-08 21:51:03 -06:00
parent fb5277ae5f
commit e25a02d7e3
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

6
run
View file

@ -12,4 +12,10 @@ if [[ $1 -lt 10 ]]; then
day="0$1" day="0$1"
fi; fi;
$JAVA_BIN/javac jlib/*.java
if [[ $2 -eq "g" ]]; then
$JAVA_BIN/java --class-path jlib/*:. day_$day/java/Generic.java "${@:3}"
else
$JAVA_BIN/java --class-path jlib/*:. day_$day/java/Part$2.java "${@:3}" $JAVA_BIN/java --class-path jlib/*:. day_$day/java/Part$2.java "${@:3}"
fi;