/*********************** * This is our first simple program in CISC 1115 * SYNTAX -- grammar rules of a programming language * ; ends a statement in java *************************/ // single line comment public class Pgm1 { public static void main(String[] args) { // say hello to the world System.out.println( "Hello World! \t" + "This is our " + 2 + "nd Java program.\n" + "This is the last \\ stmt in the pgm. "); // put + to concatenate (connect) outputs so println will // print them. // Escape sequences begin with \. \n is enter // \t tab // \\ will print \ } } // main is a method. Every program has to have a public main method. // returns void -- gives back nothing // every method is followed ( ) Inside the ( ) you put arguments. /* Lab1: * do lab 0, and in addition: make sure you have at least 3 lines of * output. Call print and println, use + at least once and use at least * escape sequence. * /