Hello guys! this shawn koon here, I hope you enjoyed this video..!
If you guys liked my videos, please subscribe for more future videos :) Thank you
Whats upp programmers, it's me shawn here for another java tutorial! In this
tutorial, we are going to look at how to comment single line or multi lines
out in java so we can write our own notes in the program. Also, learn about
mathematic operation in java such as divide, modular, add, subtract, multiply.
Using both integer and float or double values.
// - Line commenting.
/*
- Multi line commenting..
*/
int x = 20;
int y = 10;
1. dividing integers
- dividing two integers using " / ".
- will give you an integer.
2. dividing floats
- divide floats using / sign.
- will give you float number.
3. integer devide floats
- this will give you float or double answer.
4. adding and subtracting.
- Pretty basic just same operation.
- maker sure to put parentheses ()
5. Multiplying.
- use * key.