Write a program that consists of the methods below
1. Write the method named "randomMethod" that declares an array for 50 integer numbers and assign random numbers which the value is between 500 and 1000 to the array
2. Write the method named " arrayMethod" that
- declares 3x3 array and get data from keyboard.
- write for-loop to count the elements which its value is less than zero.
- Print the summation of all data and average
3.Declared a String array initialize it with 5 username and password.
- Write the method name "checkAccount" that get parameter of username and password to be searched in the array.
If the username and password exist in the array, return true.
Otherwise, return false
4. In main method, write statements to
- get username and password from keyboard
- if login correct, call method "randomMethod"
else, call method "arrayMethod