ArrayFunHouse - stop public static int getSum(int numArray,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// A+ Computer Science  -  www.apluscompsci.com  //Name -  //Date -  //Lab  -  import java.lang.System;  import java.lang.Math;  public class ArrayFunHouse  //instance variables and constructors could be used, but are not really needed    //getSum() will return the sum of the numbers from start to stop, not including 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: stop public static int getSum(int numArray, int start, int stop) { int sum=0; return sum; } //getCount() will return number of times val is present public static int getCount(int numArray, int val) { int count=0; return count; } }...
View Full Document

Page1 / 2

ArrayFunHouse - stop public static int getSum(int numArray,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online