By Alvin Alexander. Last updated: June 4, 2016
Java FAQ: How do I multiple two integers (int) in Java?
Here's a quick example:
int i = 3; int j = 4; int k = i * j; System.out.println("k = " + k);
The value of k
here will be 12
.
Java FAQ: How do I multiple two integers (int) in Java?
Here's a quick example:
int i = 3; int j = 4; int k = i * j; System.out.println("k = " + k);
The value of k
here will be 12
.