Introduction
In this lab, you will learn how to check if a number is positive in Java. We will start by writing a simple program to compare a number with zero using basic conditional statements.
You will then extend this knowledge to test with both integer and double data types, understanding how to handle different numerical representations. Finally, we will explore how to handle edge cases, specifically focusing on how to correctly identify and manage the case where the number is zero.