/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package summer2014; /** * * @author jcmt */ public class Band { // Quiz 1 6.10.14 // should have at least one performer, // at least two additional pieces of data, // a constructor method, and // get and set methods for each data element // no error checking required :) private int[] arrgh = new int[12]; private String[] matey = new String[5]; private int[] patch = {10,20,30,40}; public Band() { int count = 0; //for (int c=0; c< patch.length; c++) for (int val : patch) { System.out.printf("Value in position %d is %d\n", count++, val); } } public int[] getArrgh() { return arrgh; } public void setArrgh(int[] arrgh) { this.arrgh = arrgh; } public String[] getMatey() { return matey; } public void setMatey(String[] matey) { this.matey = matey; } public int[] getPatch() { return patch; } public void setPatch(int[] patch) { this.patch = patch; } }