Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

1. Write a Java program to test if an array contains a specific value.

2. Write a Java program to sum values of an array.


Write a Java program to print the following grid.
Expected Output:
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -

3. Write a Java program that keeps a number from the user and generates an
integer between 1 and 7 and displays the name of the weekday. 

Test Data
Input number: 3
Expected Output: Wednesday

You might also like