
Operators, like how we learn on R programming, are used for operations by using variables and values. There are five different operators in Java.
The following tables are summarizing the most commonly used ones.





Let’s look at some of the examples. You will see written java code and output when you type it into NetBeans;
Example 1- Simple math calculations
Example 2- Simple math operation with two variables
Unit conversion project
I like to share a small project that we can see how fun using java for programming. This small project about unit conversion from nautical miles (a unit used to measure distances at sea) to miles and kilometers .
1 nautical miles = 1.15 miles
1 nautical miles = 1.853 kilometers
so I wanted to see what will be converted values to miles and kilometer if I have 6 & 27 nautical miles distance from sea.
Go to projects and see more details about coding steps; https://123codingwithme.com/2021/06/21/java-unit-conversion/
