java - Library System: Borrowing -
i not know how borrowholding() in library menu have create. purpose of borrowholding() members able borrow books or videos. this sample data of array: member[0] = new standardmember("id", "name"); member[1] = new premiummember("id", "name"); holding[0] = new book("id", "title"); holding[1] = new video("id", "title", loanfee); this borrowholding() method in testlibrary class: (the array in testlibrary class too) public static void borrowholding(){ string option; option = input.next(); do{ scanner scan = new scanner(system.in); int tempid = 0; system.out.println("enter id: "); string searchid = scan.next(); for(int = 0; < member.length; i++){ if(member[i].getid().equals(searchid)){ tempid = i; } } so method, tried write code search through array find memberid wants borrow. not completed yet because believe