import java.util.logging.*; public class CompLogLevel{ public static void main(String[] args) { Level level1 = Level.FINEST; Level level2 = Level.SEVERE; if (level1.intValue() == level2.intValue()){ System.out.println("Both levels are equal"); } else if (level1.intValue() > level2.intValue()){ System.out.println("level 1 is grater than level 2."); } else{ System.out.println("level 2 is grater than level 1."); } } }