Java Programming – Integer Division and the Modulus Operator

I am continuing on with my video series on Java programming for beginners. In this video, I discuss Integer division and the modulus operator and I explain in detail how to use them, providing many examples.

In my previous video on arithmetic operators, I ended that video with an example of a division operation that resulted in an unexpected answer.  I begin this video with that very example, and explain exactly what is going on.

I also demonstrate how to determine if an integer is an even or odd number.  Lastly, I highlight the danger and common error trap of division by zero operations that beginner programmers may make.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s