/* * Aresh Saharkhiz * saharkiz@gmail.com * Associate Professor / Mapua Institute of Technology / Philippines */ using System; using System.IO; // Introduction to Software Testing // Authors: Paul Ammann & Jeff Offutt // Chapter 5, section 5.2, page 189 internal class findVal_class { //Effects: If numbers null throw NullPointerException // else return LAST occurrence of val in numbers[] // If val not in numbers[] return -1 public static int findVal(int[] numbers, int val) { int findVal = -1; for (int i = 0; i < numbers.Length; i++) { // for (int i=(0+1); i