Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
 CSCE 270 – Data Structures -  Spring 2022 
Lab 4 –  KWArrayList 
 
 
Show the completed pre-lab to the TA or lab instructor 
• Eclipse project for Lab 4 created and KWArrayList.java downloaded. 
• JUnit test case created with a test for clear( ) written. 
• Description of myList after the execution of lines 5, 7, and 8. 
 
  /40 
 
 
 Handin 
Basic Assignment:    
 
 /50  The basic lab assignment compiles and produces the correct output, adequate documentation  
and good code style 
 
  ___ public KWArrayList (int capacity) 
  ___ public void clear() 
  ___ public E set(int index, E newValue) 
  ___ public boolean add(int index, E anEntry)               
       ___ public int indexOf(E item) 
  ___ public boolean contains(E item) 
       ___ public boolean isEmpty()         
       ___ public int lastIndexOf(E item)   
  ___ public boolean remove(E item) 
                      
         
  Grader comments: 
 
 
 /10 JUnit test cases adequately test the methods, adequate documentation, good code style,  
and good method names. 
 
  Grader comments: 
 
 /5 Extra credit: allow KWArrayList to hold null references 
 
  Grader comments: 
  
 
 /60 Hand-in total 
 
 /100 Lab Grade