Answered
Consider the following program. public class CircleArea
{
Static Scanner console = new Scanner(System.in) ; static final float PI = 3.14; public static void main(String[]args)
{
Float r;
Float area;
R = console.nextDouble() ;
Area = PI * r * r;
System.out.println( " Area = " + area) ;
}
} To successfully compile this program, which of the following import statement is required?
A) import java.io;
B) import java.util;
C) import java.lang;
D) No import statement is required
On Jun 26, 2024