How to test for an odd/even number
Hi I'm very new to java just trying to answer some learning questions from college. (not allowed to use jpb in the question)
It asks that a very basic program takes in from args two command line arguements, then tests them to see if their odd or even. I'm just wondering is there any pre made methods that I could use that tests if an integer is odd or even. I haven't wrote any of the program yet just wondering about any pre made methods.
If not I was thinking of taking the string arguements from args and using Integer.parseint() to turn them into integers. Then divide them by an odd or even number and see if the answer has a decimal point or not to show if its odd or even (might completely fail, thats all i thought off at the moment)
Thanks for all help in advance