write a program with a loop that lets the user enter a series of integers. the user should enter -99 to signal the end of the series. after all the numbers have been entered, the program should display the largest and smallest numbers entered. please help me check my program. The output for largest value shown below is not correct.
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int value;
int smallest;
int largest = 0;