In addition to correctness, solutions will be graded for style and design. Detail is given below; but the quick list is
public void printResults(String[] items, int first, int last, String key);
/* * Course: SE 2811 * Term: Winter 2018-19 * Assignment: assignment name * Author: your name * Date: date started */
static final int BUFFER_SIZE = 50; double[] toProcess = new double[BUFFER_SIZE];Except in rare circumstances, do not declare named constants for test code. Named constants in tests just creates maintenance problems.
distance += 10; // add ten to distanceare worse than useless. Don't write a comment if its opposite is obviously false.
You can fix most formatting issues by doing the following in IntelliJ: