Question: Enter, compile, and run the following program: public class Test OpenCurlyBracket public static void main OpenParenthesis String OpenSquareBracket CloseSquareBracket args CloseParenthesis OpenCurlyBracket System.out.println OpenParenthesis


Enter, compile, and run the following program:

 

public class Test

OpenCurlyBracket

public static void main OpenParenthesis String OpenSquareBracket CloseSquareBracket args CloseParenthesis

OpenCurlyBracket

System.out.println OpenParenthesis double quotes An Emergency Broadcast double quotes CloseParenthesis semicolon

CloseCurlyBracket

CloseCurlyBracket

  •  

PP 1.2Introduce the following errors, one at a time, to the program from PP 1.1. Record any error messages that the compiler produces. Fix the previous error each time before you introduce a new one. If no error messages are produced, explain why. Try to predict what will happen before you make each change.

  1.  

change Test to test

change Emergency to emergency

remove the first quotation mark in the string

remove the last quotation mark in the string

change main to man

change println to bogus

remove the semicolon at the end of the println statement

remove the last brace in the program

 

  •  

PP 1.3Write a program that prints, on separate lines, your name, your birthday, your hobbies, your favorite book, and your favorite movie. Label each piece of information in the output.

PP 1.4Write a program that prints a list of four or five Web sites that you enjoy. Print both the site name and the URL.

PP 1.5Write a program that prints the first few verses of a song (your choice).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!