Introduction - Introduction to Java Programming Lab...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Java Programming Lab Exercises Topics Lab Exercises Printing strings Prelab Exercises Poem Syntax errors Recognizing Syntax Errors Correcting Syntax Errors Introduction 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Prelab Exercises Your task is to write a Java program that will print out the following message (including the row of equal marks): Computer Science, Yes!!!! ========================= An outline of the program is below. Complete it as follows: a. In the documentation at the top, fill in the name of the author, date written, name of the file the program would be saved in and a brief description of what the program does. b. Add the code for the main method to do the printing. // ******************************************************************* // AUTHOR: // DATE: // File Name: // // Purpose: // ******************************************************************* public class CSYes { // ------------------------------------------------- // The following main method prints an exciting // message about computer science // ------------------------------------------------- } Poem Write a Java program that prints the message, "Roses are red". Your program will be a class definition containing a main Method — see the Lincoln example in Listing 1.1 of the text if you need guidance. Remember the following: o The name of the class must match the name of the file (but without the .java extension). o The main method must be inside the class definition (between the first { and the last }). o
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/31/2010 for the course CPSC 1301 taught by Professor Khan,s during the Spring '08 term at Columbus State University.

Page1 / 4

Introduction - Introduction to Java Programming Lab...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online