Adds a number to all array elements
(float[] a, float value)
| 141 | |
| 142 | /** Adds a number to all array elements */ |
| 143 | public static void addToArray(float[] a, float value) { |
| 144 | for (int i=0; i<a.length; i++) |
| 145 | a[i] += value; |
| 146 | } |
| 147 | |
| 148 | /** Returns the index of the first array element equal to the key, |
| 149 | * or -1 if no such element. |
no outgoing calls
no test coverage detected