How to Use Multiplication Operator in Java


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
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments