Guest User

Untitled

a guest
Mar 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. String response = HttpClient.get(url);
  2. Trip trip = new Gson().fromJson(response, Trip.class);
  3.  
  4. HttpClient.get(url).map(r -> new Gson().fromJson(r, Trip.Class))
Add Comment
Please, Sign In to add comment