From 02a82cc89daba7f6b6288fbf71db18d1acb1def7 Mon Sep 17 00:00:00 2001 From: hesham Date: Wed, 24 Apr 2019 17:39:25 +0300 Subject: [PATCH] JavaDoc & Clean --- src/Location.java | 9 ++++++++- src/Questions.java | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Location.java b/src/Location.java index 94062ee..8139665 100644 --- a/src/Location.java +++ b/src/Location.java @@ -13,11 +13,18 @@ import org.json.simple.JSONArray; import org.json.simple.JSONObject; public class Location { + private double latitude; private double longitude; private String city; private JSONObject jsonInfo; - + + /** + * Manual location constructor + * @param lat + * @param lon + * @param city + */ public Location(double lat, double lon, String city) { latitude = lat; longitude = lon; diff --git a/src/Questions.java b/src/Questions.java index 2765db6..1c7af28 100644 --- a/src/Questions.java +++ b/src/Questions.java @@ -1,6 +1,5 @@ import java.util.Arrays; import java.util.List; -import java.util.NoSuchElementException; import java.util.Scanner; import org.joda.time.LocalDate;