In this example we will show you how to use math.log() in Java.
Source Code
package com.beginner.examples;
public class Log {
public static void main(String[] args){
System.out.println(Math.log(6)); // use math.log()
}
}
Output:
1.791759469228055