Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1.  
  2. public class Main {
  3.  
  4.     public static void main(String[] args) {
  5.         ResortHandler rh = new ResortHandler(new String[] { Regions.CALIFORNIA }, "maxTrails", 35, 45, "maxTrails", "integer");
  6.         System.out.println("name: " + (String)rh.getResortPropertyWithIndex(0, "name"));
  7.         System.out.println("id: " + (String)rh.getResortPropertyWithIndex(0, "id"));
  8.         System.out.println("phone #: " + (String)rh.getResortPropertyWithIndex(0, "phone"));
  9.         System.out.println("\n\n\nList Output");
  10.         System.out.println(rh.toString(new String[] { "id", "name", "maxTrails", "openTrails" }));
  11.     }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement