From 1d244f2a5f0e20ee1e978dabf901b72629a894f9 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Mon, 6 Feb 2023 18:53:51 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/Ship.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/BattleShip/Ship.java b/src/main/java/BattleShip/Ship.java index 4502ccf..65609ee 100644 --- a/src/main/java/BattleShip/Ship.java +++ b/src/main/java/BattleShip/Ship.java @@ -6,4 +6,9 @@ public class Ship { int length; public int numOfHits = 0; boolean kill = false; + + public Ship(int l, String n) { + length = l; + name = n; + } }