Preview:
public class LabTask6{ 
static String s="HITLER";
static int x=245;
static int y;
static void fun(int z) 
 { 
System.out.println("s: "+s);
System.out.println("x= "+x);
System.out.println("y= "+y);
System.out.println("z= "+z);
 } 
static 
 { 
System.out.println("static block is invoked");
 y=x-98;
 } 
public static void main(String args[]) 
 { 
fun(10);
 }}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter