Question: the code should be in java and i really need it fast PART 2 Problem #2: [25 pts] Methods a) Write a boolean method called
PART 2 Problem #2: [25 pts] Methods a) Write a boolean method called productDivisibleByThree that returns true if the product of the digits of its integer parameter is divisible by 3 and false otherwise. For example, if the value passed to the method is 23 then the product of its digits is 6 (2*3). The method should return true since 6 is divisible by 3. b) Write a main method that calls the method productDivisibleByThree for the values between 10 and 50 inclusive 10 per line. This should output the following numbers: 10 13 16 19 20 23 26 29 30 31 32 33 34 35 36 37 38 39 40 43 46 49 50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
