Fixed missing port error

This commit is contained in:
Steven Tracey 2024-08-07 15:26:11 -04:00
parent f86ffb4467
commit 9bad5ea283

View File

@ -9,7 +9,7 @@ import static spark.Spark.*;
public class Server {
public static void main(String[] args) {
if (args[0] != null) {
if (args.length >= 1) {
port(Integer.parseInt(args[0]));
} else {
port(8080);