Abstract
In elementary school math, we usually follow a procedure to find all factors for any given positive integer number. This process is called factorization, and it takes quite a lot of calculation depending on how big the integer number is. With the Java programming environment, let's create a simple program to do the same job for us. We'd like to write code to find all factors of any positive integer. When a user inputs "10," the program is supposed to output: 1, 2, 5, and 10. As the first step, we need to define the procedure and then implement it by Java code.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Ron Dai
About this chapter
Cite this chapter
Dai, R. (2019). Factorization. In: Learn Java with Math. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5209-3_22
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5209-3_22
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5208-6
Online ISBN: 978-1-4842-5209-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)