title: Pagination example for spotify api java [spotify-web-api-java]
body: <p>I'm trying to create a playlist viewer and I got stuck on paging.
  I want to get all the names of current users playlists.
  Any help would be appreciated.</p>
  
  <pre><code>    public void getPlaylists() {
      try {
          SpotifyApi spotifyApi = new SpotifyApi.Builder().setAccessToken(auth.getToken()).build();
          GetListOfCurrentUsersPlaylistsRequest getListOfCurrentUsersPlaylistsRequest = spotifyApi.getListOfCurrentUsersPlaylists().limit(5).offset(0).build();
          Paging&lt;PlaylistSimplified&gt; playlistSimplifiedPaging = getListOfCurrentUsersPlaylistsRequest.execute();
      } catch (IOException | SpotifyWebApiException e) {
          System.out.println("Erroras: " + e.getMessage());
      }
  }
  </code></pre>