Lab
Lab Goal : This lab was designed to introduce and demonstrate how to use an ArrayList.
Lab Description : Create a method that will receive an integer parameter and then return an ArrayList that contains all of the number’s factors, excluding itself.
You will need to use % to determine if a number is a factor.
public class ArrayListFunHouse
{
/*
*method getListOfFactors will return a list of
*all of the factors of number – excluding number
*/
public static ArrayList getListOfFactors(int number)
{
}
}
Sample Data :
9
23
50
100
762
Sample Output :
[1, 3]
[1]
[1, 2, 5, 10, 25]
[1, 2, 4, 5, 10, 20, 25, 50]
[1, 2, 3, 6, 127, 254, 381]
-----------------------
A+ Computer Science ArrayList – Factor List Lab Value - 100
Files Needed ::
ArrayListFunHouse.java
ArrayListFunHouseRunner.java
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- summa lab 95 arch street
- abstract for chemistry lab report
- quest diagnostics lab locations
- ap biology photosynthesis lab answers
- et50 photosynthesis lab ap bio
- ecological succession lab answer key
- lab urine test detection times
- ap bio photosynthesis lab answers
- photosynthesis lab ap biology
- elodea photosynthesis lab answers
- elodea photosynthesis lab results
- photosynthesis lab report experiment