Enter Code Line 1 2 3 4 Import Javautilrandom Import Javautilscanner Public Class Highest Q23505445
Enter the code for line 1, 2, 3 and 4.
import java.util.Random;
import java.util.Scanner;
public class Highest
{
publicstatic void main (String[]args)
{
//A meteorological company wants you to write a simple program thatstores the high temperatures
//for each of the months of the year. After consulting withtrusted programming partners, you come up with a great idea. It isas follows:
//Create a Scanner object (Code given below)
Scanner kb = newScanner(System.in);
//create an array called months that lists all twelve abbreviated(Ex. Jan) months names as strings
//1.
//create another array called highs that initializes 12 elementmembers to 0.
//2.
//Use a loop to prompt the user to enter the high temperatures foreach month.
//3.
//create a method calledfindHighest, that searches the highs array for the highesttemperature.
//Output which month was the hottest month (Call to the codegiven)
System.out.print(findHighest(highs));
}
publicstatic intfindHighest(int[] highs)
{
//4.
}