From e78269276b35e33b3af643edadabfee94bb6a7ac Mon Sep 17 00:00:00 2001 From: jegadeesh <78228293+jegadeeshpj@users.noreply.github.com> Date: Thu, 15 Sep 2022 19:11:05 +0530 Subject: [PATCH] Update Fishing competition.java Hi , You miss the one line this code. it will cause err at line no -> 23. Thanks & Regards Jegadeesh P --- Fishing competition.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Fishing competition.java b/Fishing competition.java index b4dab8c..f83fcdb 100644 --- a/Fishing competition.java +++ b/Fishing competition.java @@ -22,6 +22,7 @@ else if(medium<0){ } else if(small<0){ System.out.println(small+" is an invalid input"); + System.exit(1); } else{ total=(big*10)+(medium*6)+(small*3);