In this example we will show you how to use multiplication operator in Java.
Source Code
package com.beginner.examples;
public class MultiplicationOperator {
public static void main(String[] args) {
int a = 3;
int b = 7;
System.out.println(a * b); // use multiplication operator
}
}
Output:
21