Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The GenEdData Class One constructor o with no parameters Creates an ArrayList of GenEd objects . Create 9 objects and add them to the array

image text in transcribedimage text in transcribed

The GenEdData Class One constructor o with no parameters Creates an ArrayList of GenEd objects . Create 9 objects and add them to the array using the following data "Writing Speaking", "GWS", 3 "Quantification", "GQ",3 "Arts", "GA",3 "Humanities", "GH",3 "Health and Wellness", "GHW", 3 "Natural Sciences", "GN",3 "Social and Behavioral Sciences", "GS",3 "United States Cultures", "US",3 "International Cultures", "IL",3 "Writing Across the Curriculum", "WAC",3 The methods o public boolean contains(Strings) checks if the String is present either in the code or the description of the GenEd objects in the array for instance, "Sciences" will return true for the objects below "Natural Sciences", "GN",3 "Social and Behavioral Sciences", "GS",3 . It returns true if the Strings is contained in the array it returns false if the Strings is not contained in the array o public GenEd find(String s) checks if the String matches either the code or the description of the GenEd objects in the array for instance, "Natural Sciences" (a description) or "GS" (a code) will return true for the objects below "Natural Sciences", "GN",3 "Social and Behavioral Sciences", "GS",3 It returns the GenEd object if the Strings matches an element in the array it returns null if the String s does not match an element in the array The app class 1. create one GenEdData object 2. Test the contains method in the GenEdData object using the data below The app class 1. create one GenEdData object 2. Test the contains method in the GenEdData object using the data below 1. Writing 2. writing 3. Use System.out.println to print the result 4. The possible messages are 1. if the method returns true, display "input string" is on the GenEd Table 2. if the method returns false, display "input string" is NOT on the GenEd Table 3. Test the find method in the GenEdData object using the data below 1. abcd 2. GHW 3. International Cultures 4. The possible messages are 1. use toString to display the data from the object that was returned by the method 2. If the returned object is null, display "input string" is NOT on the GenEd Table Other Classes GenEd: same as in previous assignments. Output The output should be similar to Writing is on the GenEd Table writing is NOT on the GenEd Table abcd is NOT on the GenEd Table Health And Wellness (GHW) 3 International Cultures (IL) 3 The GenEdData Class One constructor o with no parameters Creates an ArrayList of GenEd objects . Create 9 objects and add them to the array using the following data "Writing Speaking", "GWS", 3 "Quantification", "GQ",3 "Arts", "GA",3 "Humanities", "GH",3 "Health and Wellness", "GHW", 3 "Natural Sciences", "GN",3 "Social and Behavioral Sciences", "GS",3 "United States Cultures", "US",3 "International Cultures", "IL",3 "Writing Across the Curriculum", "WAC",3 The methods o public boolean contains(Strings) checks if the String is present either in the code or the description of the GenEd objects in the array for instance, "Sciences" will return true for the objects below "Natural Sciences", "GN",3 "Social and Behavioral Sciences", "GS",3 . It returns true if the Strings is contained in the array it returns false if the Strings is not contained in the array o public GenEd find(String s) checks if the String matches either the code or the description of the GenEd objects in the array for instance, "Natural Sciences" (a description) or "GS" (a code) will return true for the objects below "Natural Sciences", "GN",3 "Social and Behavioral Sciences", "GS",3 It returns the GenEd object if the Strings matches an element in the array it returns null if the String s does not match an element in the array The app class 1. create one GenEdData object 2. Test the contains method in the GenEdData object using the data below The app class 1. create one GenEdData object 2. Test the contains method in the GenEdData object using the data below 1. Writing 2. writing 3. Use System.out.println to print the result 4. The possible messages are 1. if the method returns true, display "input string" is on the GenEd Table 2. if the method returns false, display "input string" is NOT on the GenEd Table 3. Test the find method in the GenEdData object using the data below 1. abcd 2. GHW 3. International Cultures 4. The possible messages are 1. use toString to display the data from the object that was returned by the method 2. If the returned object is null, display "input string" is NOT on the GenEd Table Other Classes GenEd: same as in previous assignments. Output The output should be similar to Writing is on the GenEd Table writing is NOT on the GenEd Table abcd is NOT on the GenEd Table Health And Wellness (GHW) 3 International Cultures (IL) 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

Carry out an interview and review its success.

Answered: 1 week ago