summaryrefslogtreecommitdiff
path: root/src/Chapter2/support/Location.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Chapter2/support/Location.java')
-rw-r--r--src/Chapter2/support/Location.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Chapter2/support/Location.java b/src/Chapter2/support/Location.java
new file mode 100644
index 0000000..7f6234f
--- /dev/null
+++ b/src/Chapter2/support/Location.java
@@ -0,0 +1,28 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package Chapter2.support;
+
+/**
+ *
+ * @author shamanth
+ */
+public class Location
+{
+ public Double latitude;
+ public Double longitude;
+
+ public Location(Double lat,Double lng)
+ {
+ latitude = lat;
+ longitude = lng;
+ }
+
+ @Override
+ public String toString()
+ {
+ return "Latitude: "+latitude+" & Longitude: "+longitude;
+ }
+}