Answer:
Step-by-step explanation:
The code provided is written in Java. The statement is provided right under the /*Type your code here*/. In Java, in order to case one primitive to another you simply need to type the primitive type that you are trying to cast too before the variable and within parenthesis. The output of the new code can be seen in the attached image below.
class LabProgram {
public static int convert(double d){
/* Type your code here */
return (int) d;
}
public static void main(String[] args) {
System.out.println(convert(19.9));
System.out.println(convert(3.1));
}
}