public class LabTask1 { static boolean val1; static double val2; static float val3; static int val4; static long val5; static String val6; public static void main (String args[]) { System.out.println("Default values...."); System.out.println("Boolean default is = " + val1); System.out.println("Double default is = " + val2); System.out.println("Float default is = " + val3); System.out.println("Int default is = " + val4); System.out.println("Long default is = " + val5); System.out.println("String default is = " + val6); } }
Preview:
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