public ShoppingCartItem findCartItem(int index){
  if (cartLines.size() <= index) {
    return null;
  }
  return cartLines.get(index);
}

public ShoppingCartItem findCartItem ( int index ) { if ( cartLines . size ( ) <= index ) { return null ; } return cartLines . get ( index ) ; }
get a shoppingcartitem from the cart object .
