Lab14a - System.out.println("sum of spots 2-9 = "...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// A+ Computer Science  -  www.apluscompsci.com  //Name -  //Date -  //Lab  -  import java.util.Arrays;  public class Lab14a  public static void main( String args[] )  int[] one = {4,10,0,1,7,6,5,3,2,9};    System.out.println(Arrays.toString(one));  System.out.println("sum of spots 3-6  =  " +  ArrayFunHouse.getSum(one,3,6)); 
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println("sum of spots 2-9 = " + ArrayFunHouse.getSum(one,2,9)); System.out.println("# of 4s = " + ArrayFunHouse.getCount(one,4)); System.out.println("# of 9s = " + ArrayFunHouse.getCount(one,9)); int two = {4,2,3,4,6,7,8,9,0,10,0,1,7,6,5,3,2,9,9,8,7}; //add test cases } }...
View Full Document

This note was uploaded on 01/24/2011 for the course COMP SCI 543 taught by Professor Mark during the Spring '10 term at Brown College.

Ask a homework question - tutors are online