Assignment 1 - Introducion To Java
Assignment 1 - Introducion To Java
Computer
Programming I
Due Date: Thursday, September 21, 2023 (see Assignment section below)
Exercises & Assignment 1: Getting Started
Objectives
Getting familiar with Java
Creating, editing, compiling, and running your first Java program—and probably do some debugging!
Opportunity to provide your instructor some interesting details about yourself
1. The “Hello World” program. Create, save, compile, and run, the following “Hello World” program:
Within the main() method, include the necessary System.out.println() statements that,
display your name, and nickname (if you have one); ex: “My name is Bob Smith, but people
call me Bibbles.”
display your academic study discipline (such as, Computing Science, Bachelor of Science,
Fine Arts, Business, etc.)
display some interesting details about yourself, that you are willing to share
COMP 1130
Computer
Programming I
Compile and run the program. If the compiler indicates any syntax errors, fix them (the program is
correct as shown).
Record your observations (the error message, or when an error is not produced) in a document.
The changes (introduce one at a time, and reverse before proceeding to the next):
a. change public class Test to public class test
b. change Emergency to emergency
c. remove the first quotation mark in the string: ("An … to (An …
d. remove the last quotation mark in the string: Broadcast”); to Broadcast);
e. change main to man
f. change .println( to .bogus(
g. remove the semicolon (;) at the end of the .println statemet
h. remove the very last brace } in the program
Example output, from a program named PersonalProfile.java, running the class PersonalProfile.class,
When not studying, I enjoy reading comics, hiking, watching dramas, listening to
music.