has method

double has(
  1. int k
)

Implementation

double has(int k){
  if(k >= length || k < 0){
    return -1.0;
  }

  return elementAt(k);
}