From: Jérôme Benoit Date: Sat, 19 Jan 2019 19:29:22 +0000 (+0100) Subject: Break a loop once the work is done. X-Git-Url: https://git.piment-noir.org/?p=Persons_Comparator.git;a=commitdiff_plain;h=99d1477f4f6b0797445fcacdab1440439a70e82f Break a loop once the work is done. Signed-off-by: Jérôme Benoit --- diff --git a/src/Country.java b/src/Country.java index 2e35db2..3b8735d 100644 --- a/src/Country.java +++ b/src/Country.java @@ -100,6 +100,7 @@ public class Country { setLat(Double.parseDouble(latLngArray[0])); setLng(Double.parseDouble(latLngArray[1])); setFlag(line.get(21)); + break; } } if (!found)