public class p1 { public static viod main (string[] arg) { int x, y; char c; String s; boolean b = true; C = K; x = 15; Y = 20; System.out.println("Value of intVarX is " + x + "."); System.out.println("Value of intVarY is " + Y + "."); System.out.println("Value of charVarC is " + c + "."); S = "This is a string value assigned to s"; system.out.println("Value of stringS is\n*" + s +"*"); System.out.println("Value of boolVarB is " + b); } // end of main method } // end of class.