Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 967 Bytes

README.md

File metadata and controls

67 lines (48 loc) · 967 Bytes

Java Operators

Example Application: Operators

Sum

		intValue = 0;
		intValue++;

		intValue = 0;
		intValue += 1;

		intValue = 0;
		intValue = intValue + 1;

output

	1

Subtraction

		intValue = 1;
		intValue--;

		intValue = 1;
		intValue -= 1;

		intValue = 1;
		intValue = intValue - 1;

output

	0

Multiplication

		intValue = 2;
		intValue *= 2;

		intValue = 2;
		intValue = intValue * 2;

output

	4

Division

		intValue = 2;
		intValue /= 2;

		intValue = 2;
		intValue = intValue / 2;

output

	1

Some links for more in depth learning