Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 438 Weeks Ago, 2 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 05 May 2017 My Price 5.00

Consider the List interface in the java

 

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.

 

 

 
 

Answers

(8)
Status NEW Posted 05 May 2017 12:05 PM My Price 5.00

-----------

Attachments

file 1493988811-Answer.docx preview (311 words )
C-----------ons-----------ide-----------r t-----------he -----------Lis-----------t i-----------nte-----------rfa-----------ce -----------in -----------the----------- ja-----------va.-----------uti-----------l p-----------ack-----------age----------- fo-----------r o-----------rde-----------red----------- co-----------lle-----------cti-----------ons----------- of----------- ob-----------jec-----------ts.----------- Wr-----------ite----------- pr-----------eco-----------ndi-----------tio-----------ns -----------and----------- po-----------st -----------con-----------dit-----------ion-----------s i-----------n O-----------CL -----------for----------- th-----------e f-----------oll-----------owi-----------ng -----------ope-----------rat-----------ion-----------s: ----------- â€-----------¢ i-----------nt -----------siz-----------e()----------- re-----------tur-----------ns -----------the----------- nu-----------mbe-----------r o-----------f e-----------lem-----------ent-----------s i-----------n t-----------he -----------lis-----------t. ----------- â€-----------¢ v-----------oid----------- ad-----------d(O-----------bje-----------ct -----------e) -----------add-----------s a-----------n o-----------bje-----------ct -----------at -----------the----------- en-----------d o-----------f t-----------he -----------lis-----------t. ----------- â€-----------¢ v-----------oid----------- re-----------mov-----------e(O-----------bje-----------ct -----------e) -----------rem-----------ove-----------s a-----------n o-----------bje-----------ct -----------fro-----------m t-----------he -----------end----------- of----------- th-----------e l-----------ist-----------. -----------•----------- bo-----------ole-----------an -----------con-----------tai-----------ns(-----------Obj-----------ect----------- e)----------- re-----------tur-----------ns -----------tru-----------e i-----------f t-----------he -----------obj-----------ect----------- is----------- co-----------nta-----------ine-----------d
Not Rated(0)