Java examples for Language Basics:Math
find natural logarithm value of a number using log method of Math class
public class Main { public static void main(String[] args) { /*ww w. ja va 2 s .com*/ System.out.println("Natural logarithm value of 2 is : " + Math.log(2)); } }