# Lesson 11 - Activity 2 - Can you create a method to tell if one number is exactly divisible by another number?

**URL:** <https://club.ministryoftesting.com/t/lesson-11-activity-2-can-you-create-a-method-to-tell-if-one-number-is-exactly-divisible-by-another-number/31720>\
**Category:** Discussions\
**Tags:** java-intro\
**Created:** [28 November 2019 18:01 UTC](https://club.ministryoftesting.com/t/lesson-11-activity-2-can-you-create-a-method-to-tell-if-one-number-is-exactly-divisible-by-another-number/31720 "2019-11-28T18:01:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike\_talks](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/mike_talks/32/11115_2.png) [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Post date:** [28 November 2019 18:01 UTC](https://club.ministryoftesting.com/t/lesson-11-activity-2-can-you-create-a-method-to-tell-if-one-number-is-exactly-divisible-by-another-number/31720/1 "2019-11-28T18:01:05Z")

</div>

**Time:** 15 minutes

**Purpose:** This activity helps you get familiar with using operators, methods, ifs - a real revision piece!

**Introduction:** You’re had experience creating methods, create one which uses an if to create a return value

**Task:** Create a method that takes two integers, and returns true if the first number is exactly divisible by the second number (has a modulus of zero).
