Java Modulus Tutorial #61

preview_player
Показать описание

Modulus is the remainder of division. Here are a few examples using modulus in java:

4/2 = 2 r 0
4%2 = 0

5/2 = 2 r 1
5%2 = 1

15/6 = 2 r 3
15%6 = 3

I hope this helps you make with modulus :) This is GREAT practice for modulus operator in java!

I hope you enjoyed this java modulus tutorial!

Disclosure: Springboard link provided is linked to my affiliate account & supports the channel.

Alex Lee
Рекомендации по теме
Комментарии
Автор

I've just completed watching Java Basics 1 playlist. Very clear explanation with examples. Thanks Alex!. Moving on to Java Basics 2 Playlist :)

chandureddy
Автор

You are the best guide I've searched for the java essentials. Thank you. I've preferred this channel to my overall classmates and junior colleagues.

dhananjayan
Автор

☕☕☕ new to this channel, but it's 1 am and i'm still watching your videos (got here by trying to find something about GUI). Your videos are really helpful. ☕

ninastevanovic
Автор

my dude got his first sponsorship (Y)
get to know you yesterday and feelin proud of you haha

bewatter
Автор

I find this especially useful for determining odd and even numbers. Either from user or in loops

geofflovig
Автор

Mod explained in amazingly simple way. The real world example was a great addition!!!

kalavaidya
Автор

Wow you make it seem so simple and understandable - super grateful to have found you; your videos would literally be why I will pass my end of year Java exam. Thank you! Looking out for your videos - keep striving!

acelyaerdogan
Автор

I started using Sololearn and completed glossed over this. Thank you!

calliethompson
Автор

☕☕
Hey man, I just want to say thanks and mention how mad I am that I didn't find your videos 6 months ago. I've been taking U classes online, and was in the most abysmal intro to Java class. The textbook was confusing, instructor help was virtually Jon existent and the course outline was extremely outdated. While I was able to piece together my assignments for fairly good marks, a lot of the conceptual aspects of Java seemed very confusing to me. I discovered your channel this week, about 3 days before I had to write my final for the course, and your videos have helped more than anything else I've tried in this course. Keep up the good work, I'll make sure to add a link to your channel in the classes discussion forum for anyone else who struggles with the class.

BeardoComputes
Автор

man thanks for making a simple explanation i really understood nw how it works, thanks

lawrence
Автор

Really Alex, your videos are awesome. It has helped me so much in learning Java. Thank you very much.
Please upload more videos in practice code with some famous known algorithms. That will really help us.

Once again thank you for your videos.

AmanRaj-soug
Автор

It's just the left over of the devision, the "remainder"...since I'm not a native english speaker it was kindda hard to catch at first so: Para los que hablan español: Es el resto de la división, lo que sobra. 5/2=2 (sin decimales porque no los admite las tipo int) lo que sobra es 1, ese es el remainder.

agustinalem
Автор

I would like to see a video about generics. Love your videos, keep it up!

michaelmiksad
Автор

As a programming student, the problem is that we don't use the already installed library things (like push, Pop for stack)
I cant wait to use them instead of creating it from the zero!

nawafbinhumaid_
Автор

Thanks for the help! Very useful video!

ikaro
Автор

Sincerely, thank you so much, this is such a big help!

AleTheDLT
Автор

What would happen if your first number is greater? For example if you got 4%25 or 3%44, what would the outputs be?

oldhummus
Автор

Hey Alex I had suggestion for you ...
If you make videos on how to solve any program by implementing the
By making java programs like
Magic number, automorphic And many more
.... actually I suggested this because in college and schools we are given as a topics.... Like this
And also for more viewers and growth....
Most questions I have seen like -
(How to understand a specific programs & understand to implement in different ways )
Thanks in advance 👍

BlackPanther-vium
Автор

% is just fir remainder remeber this and you're all srt. Great video. I'm on your Discord.




Other's please join Alex's discord server. Link in description.

themodestai
Автор

Thank you so much for this video, it helped me a lot :-)

WiIdcard.