It displays the power to which '10' would have to be raised in order to get the number you entered. That's the definition of the 'logarithm' or 'log' of a number.
Examples:
Enter 100. Hit 'log x'....
import java.io.*;public class calculator{ public static void main(String[] args) throws Exception{ int x, y; BufferedReader b = new BufferedReader(new InputStreamReader(System.in)) ; ...