Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

starlyn reyes
32 Pointspublic I replace(I obj, int index) ,
Description copied from interface: ListInterface This method is called to repThe method then returns the replaced element or null if no element exists at the specified index. Specified by: replace in interface ListInterface<I> Parameters: obj - A reference to the obj that will replace the current element in the list. index - Idicates the position in the list where the replacement should be made. Returns: If the replacement is successful, the method will return a reference to the replaced element. Otherwise, the method will return null.