Programming Activity 11 Complete Chapter 1 Programming Activ

Programming Activity 1-1

Complete Chapter 1 \"Programming Activity 1: Writing a First Java Application\".

On a separate line, immediately after the statement that outputs the text \"Programming is not a spectator sport!\" add the following statement:

System.out.println(\"<your name> is one of its players.\");

Replace <your name> by your first and last name.

Make sure you study the Programming Activity 1-1 Guidance document.

Upload your zipped assignment folder, which contains the java and class files.

Solution

public class JavaApplication

{

public static void main(String s[])
   {

String fname, lname;

fname=\"Kevin\"; lname=\"Pietersen\";

// Print first line
     System.out.println(\"Programming is not a spectator sport!\");

   // Print secondline
  System.out.println(fname+\" \"+lname+\" is one of its players!\");

}

}

Programming Activity 1-1 Complete Chapter 1 \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site