(This article is self-created, please indicate the source if forwarding.
Walk the whole country (hiker2008.blog.cto)
Beginning to learn java, I wrote a program to calculate the 24-point game. I hope to get the guidance of all heroes to improve together.
I used to play poker when I was a child, but now I'm lazy and use a computer to calculate, huh, huh.
Run method: javaCal24abcd
where abcd is 4 natural numbers from 1 to 9.
The output is the formula and the number of 24 after addition, subtraction, multiplication and division.
If the algorithm is not messy, it will not be written.
You can see the program for details, and I have added comments to the important places.)