@@ -0,0 +1,534 @@
+package javaStaticInitializerBlock;%0A%0Aimport java.util.Scanner;%0A%0Apublic class Solution %7B%0A%09%0A%09static boolean flag = false;%0A%09static int B, H;%0A%09static%7B%0A%09%09Scanner scanner = new Scanner(System.in);%0A%09%09B = scanner.nextInt();%0A%09%09H = scanner.nextInt();%0A%09%09Exception e = new Exception();%0A%09%09if( B %3C= 0 %7C%7C H %3C= 0)%0A%09%09%09System.out.println(e.toString() + %22: Breadth and height must be positive%22);%0A%09%09else%0A%09%09%09flag = true;%0A%09%09scanner.close();%0A%09%7D%0A%09%0A%09public static void main(String%5B%5D args)%7B%0A%09%09if(flag)%7B%0A%09%09%09int area = B * H;%0A%09%09%09System.out.print(area);%0A%09%09%7D%09%0A%09%7D%0A%7D

Add solution for problem Java Static Initializer Block