PROGRAMMING:average life span
Fill in the blanks. According to the requirements of the title, improve the following code. Please submit the complete code.
###Input format:
Please write the input format here. For example: input 2 integers a and B with absolute value no more than 1000 in one line.
###Output format:
Please describe the output format here. For example, for each group of inputs, output the value of a + B in one line.
###Input example:
```in
Here is a set of inputs. For example:
18 -299
```
###Output example:
```out
The corresponding output is given here. For example:
-281
```
answer:If there is no answer, please comment
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int age1,age2;
age1 = in.nextInt();
age2 = in.nextInt();
System.out.print(Farmer.averageAgeChange());
}
}
class Person{
static int AverageAge;
}
class Farmer extends Person{
static int AverageAge;
static char averageAgeChange(){
char change;
if(AverageAge>= Person.AverageAge){
change = 'A';
}else{
change = 'B';
}
return change;
}
}
###Input format:
Please write the input format here. For example: input 2 integers a and B with absolute value no more than 1000 in one line.
###Output format:
Please describe the output format here. For example, for each group of inputs, output the value of a + B in one line.
###Input example:
```in
Here is a set of inputs. For example:
18 -299
```
###Output example:
```out
The corresponding output is given here. For example:
-281
```
answer:If there is no answer, please comment