To to multiply in Java, put an asterisk between two numbers like so:
2 * 3
.Here are a few examples:
int multipliedIntegerNumbers = 2 * 3;
double multipliedFractionalNumbers = 4.5 * 3.0;
System.out.println(multipliedIntegerNumbers); // 6
System.out.println(multipliedFractionalNumbers); // 13.5
System.out.println(2.3 * 6); // 13.8