Advertisement
Guest User

Two

a guest
Jul 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. //класс для ArrayList-а
  2.  
  3. package com.example.xxxxx.xxxxx;
  4.  
  5. public class mapData {
  6.     String Tit;
  7.     String Snip;
  8.     double lat;
  9.     double lng;
  10.  
  11.     public mapData(String Title, String Snippet, double Latitude, double Longitude){
  12.         this.Tit = Title;
  13.         this.Snip = Snippet;
  14.         this.lat = Latitude;
  15.         this.lng = Longitude;
  16.     }
  17.  
  18.     public double getLat(){
  19.         return lat;
  20.     }
  21.  
  22.     public double getLng(){
  23.         return lng;
  24.     }
  25.  
  26.     public String getTitle(){
  27.         return Tit;
  28.     }
  29.  
  30.     public String getSnippet(){
  31.         return Snip;
  32.     }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement