304311 Java Lab 

 Lab 1

Objective

To be able to write simple java application

Classwork:

  1. Write an application that displays the number 1 to 4 on the same line with each pair of adjacent numbers separated by one space. Write the program using:

  2.         One System .out statement.

            Four System .out statements.

  3. Write a program that reads a first name and a last name from the user as two separate inputs and concatenates the first and last name separated by a space. Display in a message dialog the concatenated name.

  4. Write a program that inputs five numbers and determines and prints the number of positive numbers, the number of negative numbers, and the number of zeros input.

  5. Write an application that inputs from the user the radius of a circle and prints the circle�s  diameter, circumference , and area.

Lab 1
Lab 2
Lab 3
Lab 4
Lab 5
Lab 6
Lab 7
Lab 8
Lab 9

 � All Copyright Reserved By Fatma & Tahany,Email : [email protected]

Hosted by www.Geocities.ws

1