create a public class and a main class to deletebyStudentID number with get ID and getStudentByName...

50.1K

Verified Solution

Question

Programming

create a public class and a main class todeletebyStudentID number with get ID and getStudentByName in publicclass. when the user is prompted to search for the student anddelete them by their. ID has seven digits and 6 studentseach.
Ex. Delete student by their ID
        Enter students name andtheir ID
        Vanessa,
        1111-111
        Vanessa is nowdeleted

Answer & Explanation Solved by verified expert
3.6 Ratings (517 Votes)
Solution Steps 1Create Model class for student with name and id in it2Make getter and setter for studentId and studentName3 In main class declare arraylist for student class and addthem in student arraylist4ask user for name and id5 use if loop for matching the student detailsJava Class for Student public class Students public constructor for Student public Students String studentId String    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students