The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
University
| Teaching Since: | Apr 2017 |
| Last Sign in: | 438 Weeks Ago, 2 Days Ago |
| Questions Answered: | 9562 |
| Tutorials Posted: | 9559 |
bachelor in business administration
Polytechnic State University Sanluis
Jan-2006 - Nov-2010
CPA
Polytechnic State University
Jan-2012 - Nov-2016
Professor
Harvard Square Academy (HS2)
Mar-2012 - Present
Â
Consider the List interface in the java.util package for ordered collections of objects. Write preconditions and post conditions in OCL for the following operations:
• int size() returns the number of elements in the list.
• void add(Object e) adds an object at the end of the list.
• void remove(Object e) removes an object from the end of the list.
• boolean contains(Object e) returns true if the object is contained in the list.
• Object get(int idx) returns the object located at index idx, 0 being the index of the first object in the list.
Â
Â
-----------