Java ArrayList Methods and Movie Favorites Program

lec 03 arraylist n.w
1 / 10
Embed
Share

Learn about ArrayList methods in Java programming, including addAll, and dive into creating a program called MovieFavorites.java for managing favorite movies using ArrayList. Enhance your skills in user interaction, iterative development, and functional decomposition.

  • Java Programming
  • ArrayList Methods
  • MovieFavorites Program
  • Iterative Development
  • User Interaction

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. LEC 03: ArrayList CSE 122 Autumn 2023 BEFORE WE START Talk to your neighbors: Any weekend plans? LEC 02 ArrayList ArrayList ArrayList Music: New Romantics Taylor Swift Instructor Elba Garza TAs Abigail Autumn Claire Jacob Kevin Mia Rucha Shreya Ambika Ayush Colin Jasmine Kyle Poojitha Saivi Smriti Arthur Chaafen Elizabeth Jaylyn Marcus Rishi Shananda Steven Atharva Chlo Helena Kavya Megana Rohini Shivani Zane Questions during Class? Raise hand or send here sli.do #cse122

  2. LEC 03: ArrayList CSE 122 Autumn 2023 Lecture Outline Announcements Warm Up ArrayList Extended Application

  3. LEC 03: ArrayList CSE 122 Autumn 2023 Announcements Quiz 0 next Tuesday, October 10th! - Topics: ArrayLists, Functional Decomposition - Taken in your registered quiz section - More details on quiz logistics in Ed announcement Creative Assignment 0 (C0) out later today! - Due next Thursday, October 12th by 11:59 PM P0 was due last night. How d it go? - Being graded expect grades back in a week-ish - Joined class late? Use Resubmission Cycle 0 to submit it!

  4. LEC 03: ArrayList CSE 122 Autumn 2023 Lecture Outline Announcements Warm Up ArrayList Extended Application

  5. LEC 03: ArrayList CSE 122 Autumn 2023 addAll Write a method called addAll that accepts two ArrayLists of Characters, list1 and list2 , and an integer location as parameters and inserts all of the elements from otherList into mainList at the specified location.

  6. LEC 03: ArrayList CSE 122 Autumn 2023 Lecture Outline Announcements Warm Up ArrayList Extended Application

  7. LEC 03: ArrayList CSE 122 Autumn 2023 Movie Favorites We will write a program called MovieFavorites.java that manages a list of favorite movies for a user (using an ArrayList) and allows the user to perform various different operations on their stored list of favorite movies. Key skills used: User Interaction (UI) loop Iterative development strategies Functional decomposition Practice with ArrayList methods!

  8. LEC 03: ArrayList CSE 122 Autumn 2023 Movie Favorites: Operations Load a list of favorites in from a file provided by the user. Compare the stored list of favorites to another list of favorites provided by the user in another file. Report the top n favorites according to the list, where the user can specify n. Move a specific favorite down in the list. Add a list of favorites in a user-provided file to the stored list of favorites at a specified location. Save the current list of favorites to a file provided by the user.

  9. LEC 03: ArrayList CSE 122 Autumn 2023 Movie Favorites: Development Strategy Set up the main scaffold code Menu loop Develop each operation, one at a time You ll see a similar development strategy in Creative Project 0 s specification we recommend you follow it!

  10. LEC 03: ArrayList CSE 122 Autumn 2023 Movie Favorites: Operations Load a list of favorites in from a file provided by the user. Compare the stored list of favorites to another list of favorites provided by the user in another file. Report the top n favorites according to the list, where the user can specify n. Move a specific favorite down in the list. Add a list of favorites in a user-provided file to the stored list of favorites at a specified location. Save the current list of favorites to a file provided by the user.

Related


More Related Content