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}
ArrayList<String> toCharList(String str)
Description: This method returns an ArrayList populated with the inidividual characters of str
Method Call return value/output
toCharList("abc") { "a","b","c"}
toCharList( "xy3b") { "x","y","3","b"}
ArrayList<Integer> digits(int num)
Description: This method returns an ArrayList populated with the digits of num
Method Call return value/output
digits(183) {1, 8 , 3}
digits(1412) { 1,4,1,2}
** ArrayList<Integer> squareRoot(int num)
Description: This method returns an ArrayList that represents the reduced square root of the given number as follows. The first number represents the integer that is "un square rooted", followed by the non-perfect square factors of num.
Method Call return value/output
squareRoot(45) {3,5} (to represent three)
squareRoot( 7 ) {1,7} (to represent three)
squareRoot( 84 ) {2,3,7} (to represent root 84)