Java Practice It | Exercise 5.23: hasAnOddDigit | if, else, Boolean logic, method basics, return

preview_player
Показать описание
More practice its:

Problem:

Question:
Write a method named hasAnOddDigit that returns whether any digit of an integer is odd. Your method should return true if the number has at least one odd digit and false if none of its digits are odd. 0, 2, 4, 6, and 8 are even digits, and 1, 3, 5, 7, 9 are odd digits.
Рекомендации по теме
Комментарии
Автор

These are helpfull keep it up, also your dedication is very admirable 🤝

lack-Echo
welcome to shbcf.ru