The Assignment

1.Review the rolling list specification (below), and report portion of the assignment before starting to code. You will test your code and collect data, and it is important to understand the goals before starting.
2.Create a "RollingList" class, as specified below. Use the provided project .zip as a starting point and implement the class so that it matches the requirements in this assignment and in the contracts in the class. As always, strive to submit high quality code.
3.Test your class to ensure that it works perfectly. This is very important for this assignment -we will be looking for exact results in code and in your report. Incorrectly implemented code will mess up your analysis.
4.Submit your program exactly as you did for assignment01. Zip up the project, submit the zip. (Note: The Eclipse submission plug-in is nearly ready, and may be available in a few days.) You may resubmit your work.
5.Proceed to the written report.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

public class TestRollingList {

// Helper method to display Rolling List elements
public static void display(RollingList rl) {
    String result = "";
    for (int i = 0; i < rl.size(); i++) {
      result += rl.getElement(i) + " ";

// Main method which tests code
public static void main(String[] args) {
    RollingList rl = new RollingList(2,1);
    System.out.println("Appending 0 through 10:");
    for (int i = 0; i <= 10; i++) {
    System.out.println("Prepending -1 through -10:");
    for (int i = -1; i >= -10; i--) {
    System.out.println("Getting element at index 10:");
    System.out.println("Setting element at index 10 to 3.14:");

By purchasing this solution you'll be able to access the following files: and Solution.docx.

for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats