@@ -0,0 +1,1231 @@
+package com.google.sps.servlets;%0A%0Aimport com.google.gson.Gson;%0Aimport com.google.sps.data.Indices;%0Aimport com.google.sps.utils.BooksMemoryUtils;%0Aimport java.io.IOException;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A/** Retrieves indices information about previous Book request */%0A@WebServlet(%22/book-indices%22)%0Apublic class BookIndicesServlet extends HttpServlet %7B%0A  @Override%0A  public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException %7B%0A    response.setContentType(%22application/json%22);%0A    String sessionID = request.getParameter(%22session-id%22);%0A%0A    int startIndex = BooksMemoryUtils.getStoredIndices(%22startIndex%22, sessionID);%0A    int resultsStored = BooksMemoryUtils.getStoredIndices(%22resultsStored%22, sessionID);%0A    int totalResults = BooksMemoryUtils.getStoredIndices(%22totalResults%22, sessionID);%0A    int displayNum = BooksMemoryUtils.getStoredIndices(%22displayNum%22, sessionID);%0A%0A    Indices indices = new Indices(startIndex, resultsStored, totalResults, displayNum);%0A    String json = new Gson().toJson(indices);%0A    response.getWriter().write(json);%0A  %7D%0A%7D%0A

Add descriptive name