Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 2.19 KB

README.md

File metadata and controls

41 lines (32 loc) · 2.19 KB

workingWithAnArrayList

Create a project that instantiates an ArrayList of Strings. Follow the directions below for adding and removing data from the ArrayList, then print out the results. You do not need to ask the user for any of this data, type it directly into the code of the main class. Be sure to print out the usual header first, "Chapter 10 Array Lists by Student Name” with a blank line after.

Directions for the ArrayList:

Add your name
Add “games”
Add your favorite hobby
Set “enjoys” as the value in position 1
Add your favorite holiday
Remove the item in position 3
Add your birthday month
Set “programming” as the value in position 2
Remove the item at the end of the list (you’ll need to know the size of the list to do this)
Print the list

Take a screenshot of the code with the output below it. Note that you must use correct formatting in the code -- appropriate indentation is most important. You can use Shift-Alt-F to have NetBeans automatically format the code correctly.

== We're Using GitHub Under Protest ==

This project is currently hosted on GitHub. This is not ideal; GitHub is a proprietary, trade-secret system that is not Free and Open Souce Software (FOSS). We are deeply concerned about using a proprietary system like GitHub to develop our FOSS project. We have an open {bug ticket, mailing list thread, etc.} where the project contributors are actively discussing how we can move away from GitHub in the long term. We urge you to read about the Give up GitHub campaign from the Software Freedom Conservancy to understand some of the reasons why GitHub is not a good place to host FOSS projects.

If you are a contributor who personally has already quit using GitHub, please check this resource for how to send us contributions without using GitHub directly.

Any use of this project's code by GitHub Copilot, past or present, is done without our permission. We do not consent to GitHub's use of this project's code in Copilot.

Logo of the GiveUpGitHub campaign