subject

In Java, write a AllDigitsOdd program that has a method called allDigitsOdd that takes an integer and returns whether every digit of an integer is odd (boolean).
returns true if the integer consists entirely of odd digits (1,3,5,7,9)
returns false if any of its digits are even (0,2,4,6,8)
Consider the use of mod (%).
You should complete the method with integers only. You should not convert the integer to a String
Method call examples:
allDigitsOdd(135319) would return true
allDigitsOdd(-9145293) would return false
Your main method should:

//Prompt the user for an integer.
//You can assume the user always types an integer.
//Then print whether or not the number has all odd digits.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
One difference of input method between most desktop computers and most tablets is the memory the touch screen the speech recognition
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
The word window is an example of a /an
Answers: 1
You know the right answer?
In Java, write a AllDigitsOdd program that has a method called allDigitsOdd that takes an integer an...
Questions
question
Mathematics, 12.12.2019 18:31
question
Social Studies, 12.12.2019 18:31
Questions on the website: 13722363