public class logax { public static void main(String[] args) { double a=logax(4,2); System.out.print(a); } public static double logax(double value,double base) { return Math.log(value) / Math.log(base); } }