 |
|
Lab
1
Objective
To be able to write simple
java application
Classwork:
-
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:
�
One System .out
statement.
�
Four System .out
statements.
-
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.
-
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.
-
Write an application that inputs from the user
the radius of a circle and prints the circle�s diameter, circumference ,
and area.
|
|
|