Home
Site Map
Useful Tools
Graphing Calc

Scientific Calculator
ArrayList<Integer> factors(int num)
Description: This method returns an ArrayList populated with the factors of num
 Method Call return value/output factors(5) {1,5} factors(10) {1,2,5,10}
int sum(ArrayList<Integer> nums)
Description: This method returns the sun of allelements in the list
 Method Call return value/output sum({1,5}) 6 sum(3,4, 2 ) 9
void printReverse(ArrayList<String> strs)
Description: This method prints all elements in reverse order
 Method Call return value/output printReverse({"a","b"}) "b" "a" printReverse( "xu", "t") "xu" "t"
double mean(ArrayList<Integer> nums)
Description: This method returns the arithmetic mean of allelements in the list
 Method Call return value/output mean({1,5}) 3 mean(3,4, 2 ) 4.5
void printEvens(ArrayList<Integer> nums)
Description: This method prints out all even numbers
 Method Call return value/output printEvens({1,5 , 6}) 6 printEvens(3,4, 2 ) 4 , 2
boolean isIdentical(ArrayList<Integer> nums1 , ArrayList<Integer> nums2)
Description: This method returns true if each element in the two ArrayLists is the same
 Method Call return value/output isIdentical({1,5 , 6} , {1,5,7} ) false isIdentical({1,5 , 6} , {1,5,6} ) true isIdentical({1,5 , 6} , {1,5 } ) false
boolean isIdentical(ArrayList<String> strs1 , ArrayList<String> str2)
Description: This method returns true if each element in the two ArrayLists is the same
 Method Call return value/output isIdentical({"ab", "a"} , { "x", "a"} ) false isIdentical({"ab", "a"} , { "ab", "a"} ) true isIdentical({ "xy"} , { "XY"} ) false
**int largest(ArrayList<Integer> nums)
Description: This method returns the largest element in nums
 Method Call return value/output largest({1,5 , 6}) 6 largest (3,4, 2 ) 4
Sitemap