# \#java-intro

**URL:** https://club.ministryoftesting.com/tag/java-intro/421.md

[Latest](https://club.ministryoftesting.com/latest.md) · [Categories](https://club.ministryoftesting.com/categories.md) · [Tags](https://club.ministryoftesting.com/tags.md)

---

## [Lesson 2 - Activity 1 - Why are we getting warnings about source value 1.5?](https://club.ministryoftesting.com/t/lesson-2-activity-1-why-are-we-getting-warnings-about-source-value-1-5/31700)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 5\
**Last updated:** [1 December 2021 08:24 UTC](https://club.ministryoftesting.com/t/lesson-2-activity-1-why-are-we-getting-warnings-about-source-value-1-5/31700 "2021-12-01T08:24:52Z")

</div>

Lesson 2 - Activity 1 - Why are we getting warnings about source value 1.5? Time: 10 minutes Purpose: This activity helps you get familiar with using Googe to search for answers on Java Introduction: During compilin…

---

## [Lesson 11 - Activity 1 - Multiple conditions](https://club.ministryoftesting.com/t/lesson-11-activity-1-multiple-conditions/33266)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:31 UTC](https://club.ministryoftesting.com/t/lesson-11-activity-1-multiple-conditions/33266 "2020-03-30T03:31:33Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with multiple conditions Introduction: You’re had experience using a single if condition, try and use one which uses multiple conditions Task: Modify th…

---

## [Lesson 8 - Activity 2 - Are there other operators you can use in Java?](https://club.ministryoftesting.com/t/lesson-8-activity-2-are-there-other-operators-you-can-use-in-java/31709)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:30 UTC](https://club.ministryoftesting.com/t/lesson-8-activity-2-are-there-other-operators-you-can-use-in-java/31709 "2020-03-30T03:30:45Z")

</div>

Time: 10 minutes Purpose: Explore other operators available in Java Introduction: You’re covered operators such as =, \<, \>, == it’s time to search for others. Task: Investigate other operator types. Decide which typ…

---

## [Lesson 8 - Activity 1 - Are there other variables you can use in Java?](https://club.ministryoftesting.com/t/lesson-8-activity-1-are-there-other-variables-you-can-use-in-java/31707)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:29 UTC](https://club.ministryoftesting.com/t/lesson-8-activity-1-are-there-other-variables-you-can-use-in-java/31707 "2020-03-30T03:29:38Z")

</div>

Time: 15 minutes Purpose: Explore other variables available in Java Introduction: You’re covered int, double, String, Boolean. But there are other variables available. Task: Investigate other variable types. \[We wil…

---

## [Lesson 7 - Activity 2 - Can you use logical operators?](https://club.ministryoftesting.com/t/lesson-7-activity-2-can-you-use-logical-operators/31706)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:27 UTC](https://club.ministryoftesting.com/t/lesson-7-activity-2-can-you-use-logical-operators/31706 "2020-03-30T03:27:31Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with using logical operators Introduction: You’re had experience using relational operators, next step is logical operators and what they output Task: D…

---

## [Lesson 7 - Activity 1 - Can you use relational operators?](https://club.ministryoftesting.com/t/lesson-7-activity-1-can-you-use-relational-operators/31705)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:26 UTC](https://club.ministryoftesting.com/t/lesson-7-activity-1-can-you-use-relational-operators/31705 "2020-03-30T03:26:05Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with using relational operators as well as the outputs you get from them. Introduction: You’re had experience using other operators, now is a chance to g…

---

## [Lesson 6 - Activity 1 - Can you manipulate strings?](https://club.ministryoftesting.com/t/lesson-6-activity-1-can-you-manipulate-strings/31704)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:24 UTC](https://club.ministryoftesting.com/t/lesson-6-activity-1-can-you-manipulate-strings/31704 "2020-03-30T03:24:44Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with working with strings Introduction: You’re now familiar with what happens when you use an operator between numbers, what happens when you’re using a…

---

## [Lesson 9 - Activity 1 - Can you create your own methods?](https://club.ministryoftesting.com/t/lesson-9-activity-1-can-you-create-your-own-methods/31716)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:22 UTC](https://club.ministryoftesting.com/t/lesson-9-activity-1-can-you-create-your-own-methods/31716 "2020-03-30T03:22:26Z")

</div>

Time: 15 minutes Purpose: Create your own methods Introduction: You’ve watched me declare some methods, now it’s time for you to have a go Task: Create the following methods, addInteger, which takes two integers, a…

---

## [Lesson 5 - Activity 2 - Can you add integers and doubles together?](https://club.ministryoftesting.com/t/lesson-5-activity-2-can-you-add-integers-and-doubles-together/31703)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:20 UTC](https://club.ministryoftesting.com/t/lesson-5-activity-2-can-you-add-integers-and-doubles-together/31703 "2020-03-30T03:20:25Z")

</div>

Time: 15 minutes Purpose: Exploring what happens when you mix decimal and integers Introduction: You’ve done operations on two identical variable types. What happens when they’re not the same? Task: Try adding an …

---

## [Lesson 5 - Activity 1 - Can you use doubles and variables?](https://club.ministryoftesting.com/t/lesson-5-activity-1-can-you-use-doubles-and-variables/31702)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:18 UTC](https://club.ministryoftesting.com/t/lesson-5-activity-1-can-you-use-doubles-and-variables/31702 "2020-03-30T03:18:35Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with using double number operators Introduction: You’ve seen how to add two decimal numbers together - do you think you can try a few operations on your…

---

## [Lesson 11 - Activity 4 - What are ternary operators?](https://club.ministryoftesting.com/t/lesson-11-activity-4-what-are-ternary-operators/31723)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:17 UTC](https://club.ministryoftesting.com/t/lesson-11-activity-4-what-are-ternary-operators/31723 "2020-03-30T03:17:57Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with terniary operators Introduction: You’ve created if statements and switches, look at terniary operators Task: A terniary operator allows you to crea…

---

## [Lesson 4 - Activity 1 - Can you use integers and variables?](https://club.ministryoftesting.com/t/lesson-4-activity-1-can-you-use-integers-and-variables/31701)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:10 UTC](https://club.ministryoftesting.com/t/lesson-4-activity-1-can-you-use-integers-and-variables/31701 "2020-03-30T03:10:56Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with using integer operators Introduction: You’ve seen how to add two integer numbers together - do you think you can try a few other operations on your…

---

## [Cannot resolve symbol error with IntelliJ](https://club.ministryoftesting.com/t/cannot-resolve-symbol-error-with-intellij/35137)

<div class="topic-metadata">

**Author:** [@mwinteringham](https://club.ministryoftesting.com/u/mwinteringham)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:05 UTC](https://club.ministryoftesting.com/t/cannot-resolve-symbol-error-with-intellij/35137 "2020-03-30T03:05:38Z")

</div>

Hi folks, It’s come to my attention that some learners have run into a small issue when building their own Java code as shown in the image below: Notice how the code num: is red and returning an error 'Cannot resolve…

---

## [Lesson 10 - Activity 2 - Can you create a method to calculate a sphere's volume?](https://club.ministryoftesting.com/t/lesson-10-activity-2-can-you-create-a-method-to-calculate-a-spheres-volume/31719)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:03 UTC](https://club.ministryoftesting.com/t/lesson-10-activity-2-can-you-create-a-method-to-calculate-a-spheres-volume/31719 "2020-03-30T03:03:39Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with creating your own method Introduction: You’ve created methods under guidance, now design and build your own method Task: Create a method to calcula…

---

## [Lesson 10 - Activity 1 - Can you overload a method?](https://club.ministryoftesting.com/t/lesson-10-activity-1-can-you-overload-a-method/31718)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 2\
**Last updated:** [30 March 2020 03:01 UTC](https://club.ministryoftesting.com/t/lesson-10-activity-1-can-you-overload-a-method/31718 "2020-03-30T03:01:05Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with overloading Introduction: You’re had experience creating methods, now have a go at overloading them Task: Building on – create an add method that t…

---

## [What do you need to install on your computer?](https://club.ministryoftesting.com/t/what-do-you-need-to-install-on-your-computer/33616)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [22 January 2020 01:45 UTC](https://club.ministryoftesting.com/t/what-do-you-need-to-install-on-your-computer/33616 "2020-01-22T01:45:28Z")

</div>

Hi all - I hope you’re enjoying the Introduction To Java course. To get the most out of the lessons, you need to code along with the examples, and have a go with the exercises. This course is all about building that han…

---

## [Lesson 11 - Activity 2 - Can you create a method to tell if one number is exactly divisible by another number?](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)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [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")

</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…

---

## [Lesson 11 - Activity 3 - What are breaks and how do they work?](https://club.ministryoftesting.com/t/lesson-11-activity-3-what-are-breaks-and-how-do-they-work/31721)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 18:02 UTC](https://club.ministryoftesting.com/t/lesson-11-activity-3-what-are-breaks-and-how-do-they-work/31721 "2019-11-28T18:02:53Z")

</div>

Time: 10 minutes Purpose: This activity helps you get familiar with breaks Introduction: You’re had experience using breaks, but they’re worthy exploring more Task: Explore what breaks do inside of switch statements…

---

## [Lesson 15 - Activity 4 - Can you throw your own exception?](https://club.ministryoftesting.com/t/lesson-15-activity-4-can-you-throw-your-own-exception/31730)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 18:15 UTC](https://club.ministryoftesting.com/t/lesson-15-activity-4-can-you-throw-your-own-exception/31730 "2019-11-28T18:15:27Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with throwing exceptions Introduction: You’re had experience catching exceptions, learn to throw them as well Task: Write a method which takes in a stri…

---

## [Lesson 15 - Activity 3 - What other exceptions are there?](https://club.ministryoftesting.com/t/lesson-15-activity-3-what-other-exceptions-are-there/31729)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 18:14 UTC](https://club.ministryoftesting.com/t/lesson-15-activity-3-what-other-exceptions-are-there/31729 "2019-11-28T18:14:13Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with other exceptions Introduction: You’re had experience using a few exceptions, but there are others Task: Here are some examples of exception types –…

---

## [Lesson 15 - Activity 2 - Can you catch a thrown exception?](https://club.ministryoftesting.com/t/lesson-15-activity-2-can-you-catch-a-thrown-exception/31728)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 18:12 UTC](https://club.ministryoftesting.com/t/lesson-15-activity-2-can-you-catch-a-thrown-exception/31728 "2019-11-28T18:12:58Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with catching exceptions Introduction: You’re had experience asserting for exceptions, now learn to catch them Task: Write a method public int convertSt…

---

## [Lesson 15 - Activity 1 - Can you create a test that checks for an exception?](https://club.ministryoftesting.com/t/lesson-15-activity-1-can-you-create-a-test-that-checks-for-an-exception/31727)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 18:11 UTC](https://club.ministryoftesting.com/t/lesson-15-activity-1-can-you-create-a-test-that-checks-for-an-exception/31727 "2019-11-28T18:11:37Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with thrown exceptions Introduction: You’re had experience using a assertions, now create one for checking for thrown exceptions Task: public static int…

---

## [Lesson 14 - Activity 2 - Can you use other styles of assertions?](https://club.ministryoftesting.com/t/lesson-14-activity-2-can-you-use-other-styles-of-assertions/31726)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 18:09 UTC](https://club.ministryoftesting.com/t/lesson-14-activity-2-can-you-use-other-styles-of-assertions/31726 "2019-11-28T18:09:50Z")

</div>

Time: 15 minutes Purpose: This activity helps you use other assertThat instances Introduction: You’ve used containsString for assertThat, get familiarity with other assertThat instances Task: containsString is just …

---

## [Lesson 14 - Activity 1 - Can you create tests with JUnit?](https://club.ministryoftesting.com/t/lesson-14-activity-1-can-you-create-tests-with-junit/31725)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 18:08 UTC](https://club.ministryoftesting.com/t/lesson-14-activity-1-can-you-create-tests-with-junit/31725 "2019-11-28T18:08:30Z")

</div>

Time: 15 minutes Purpose: This activity helps you create your own tests with JUnit Introduction: You’ve seen me create a test, try and get familarity making your own Task: Revisit some of our methods – create tests …

---

## [Lesson 13 - Activity 1 - What is Maven and what does it offer?](https://club.ministryoftesting.com/t/lesson-13-activity-1-what-is-maven-and-what-does-it-offer/31724)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 18:06 UTC](https://club.ministryoftesting.com/t/lesson-13-activity-1-what-is-maven-and-what-does-it-offer/31724 "2019-11-28T18:06:12Z")

</div>

Time: 10 minutes Purpose: This activity helps you understand the benefits of Maven in more detail Introduction: You’ve used Maven, but we’ve only touched lightly on what it does Task: Maven helps to control and impo…

---

## [Lesson 12 - Activity 1 - Looping over different ages](https://club.ministryoftesting.com/t/lesson-12-activity-1-looping-over-different-ages/32779)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [2 January 2020 02:50 UTC](https://club.ministryoftesting.com/t/lesson-12-activity-1-looping-over-different-ages/32779 "2020-01-02T02:50:18Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar loops Introduction: You’ve seen me create a loop, now create your own Task: Create a loop that loops between 10 and 40 and calls the eligibility method …

---

## [Lesson 12 - Activity 2 - What are do-while loops?](https://club.ministryoftesting.com/t/lesson-12-activity-2-what-are-do-while-loops/31722)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 18:04 UTC](https://club.ministryoftesting.com/t/lesson-12-activity-2-what-are-do-while-loops/31722 "2019-11-28T18:04:26Z")

</div>

Time: 15 minutes Purpose: This activity helps you get familiar with other loops Introduction: You’re had experience using for loops, occasionally you will meet a do-while loop Task: Read up and create an example of …

---

## [Lesson 9 - Activity 2 - Do you know what the static keyword is for?](https://club.ministryoftesting.com/t/lesson-9-activity-2-do-you-know-what-the-static-keyword-is-for/31717)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 17:55 UTC](https://club.ministryoftesting.com/t/lesson-9-activity-2-do-you-know-what-the-static-keyword-is-for/31717 "2019-11-28T17:55:51Z")

</div>

Time: 10 minutes Purpose: Explore the static keyword Introduction: We’ve been using the static keyword in our code, explore why we’re using it Task: Read up about the static keyword. What is it and why do we need it…

---

## [Lesson 8 - Activity 5 - What are ENUMS?](https://club.ministryoftesting.com/t/lesson-8-activity-5-what-are-enums/31713)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 16:00 UTC](https://club.ministryoftesting.com/t/lesson-8-activity-5-what-are-enums/31713 "2019-11-28T16:00:05Z")

</div>

Time: 20 minutes Purpose: Explore the enum concept Introduction: Enumerations are a special kind of declaration, find some time to explore them Task: Boolean.TRUE and Boolean.False are enumerated values or enums. Re…

---

## [Lesson 8 - Activity 4 - Can use AND, OR and NOT in logicial operators?](https://club.ministryoftesting.com/t/lesson-8-activity-4-can-use-and-or-and-not-in-logicial-operators/31712)

<div class="topic-metadata">

**Author:** [@mike\_talks](https://club.ministryoftesting.com/u/mike_talks)\
**Replies:** 0\
**Last updated:** [28 November 2019 15:59 UTC](https://club.ministryoftesting.com/t/lesson-8-activity-4-can-use-and-or-and-not-in-logicial-operators/31712 "2019-11-28T15:59:12Z")

</div>

Time: 15 minutes Purpose: Understanding how logical operations work Introduction: Experimenting with how AND, OR and NOT operations work Task: Logical operations such as AND, OR and NOT are typically taught in school…

[Next page](https://club.ministryoftesting.com/tag/java-intro/421.md?match_all_tags=true&page=1&tags%5B%5D=java-intro)
