Java Static Initializer Block

  • + 3 comments

    i have used the same code, still getting errors...

    .java:36: error: class, interface, or enum expected public static void main(String[] args){ ^ .java:39: error: class, interface, or enum expected System.out.print(area); ^ .java:40: error: class, interface, or enum expected } ^

    I'm not getting this error...plz help me out.