Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Getting Started with Java Programming: Your First Program in CSC 1760 - Prof. Charles W. L, Study notes of Computer Science

The steps to enter, compile, and run your first java program using eclipse in the csc 1760 introduction to programming course. Students will learn how to save their program as firstprogram.java and modify it to display different messages. Additional tasks include creating programs to display names and birthdays using various methods.

Typology: Study notes

Pre 2010

Uploaded on 08/09/2009

koofers-user-6df
koofers-user-6df 🇺🇸

10 documents

1 / 2

Related documents


Partial preview of the text

Download Getting Started with Java Programming: Your First Program in CSC 1760 - Prof. Charles W. L and more Study notes Computer Science in PDF only on Docsity! CSC 1760 Introduction to Programming Lesson 3: Your First Program Due Date: 1/12/2009 1. Textbook: Introduction to Java Programming, Brief Version, Seventh Edition, Author: Y. Daniel Liang, 2009, Prentice Hall a. Sections1.8, 1.9 2. Overview Using Eclipse, you will enter, compile, and run your first Java program. 3. Tasks a. Using Eclipse, enter, compile, and run the following program. Save the program in file named FirstProgram.java. /**************************************** * * Student Name: Your name goes here * Date Due: Date this program is due * Date Submitted: Date you submitted the program * Program Name: FirstProgram * Program Description: Displays “My first java program.” to screen. * ****************************************/ public class FirstProgram { public static void main(string[] args) { System.out.println(“My first java program.”); } } b. Modify FirstProgram to display “I changed the display.” Compile and run the program. c. Enter, compile and run a program named MyName.java. The program will display your first and last name on the same line. d. Enter, compile, and run a program named MyInfo.java. The program will display your first and last name on the first line and your birthday as MM/ DD/YYYY on the second line. e. Enter, compile, and run a program named MyName2.java. The program will display your first and last name using a message dialog box. f. Enter, compile, and run a program named MyInfo2.java. The program will display your first and last name in one dialog message box, and your birthday as MM/DD/YYYY in a second dialog message box. 4. Assignment due: a. FirstProgram.java b. MyName.java c. MyInfo.java
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved