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
Correct Answer:
Verified
Q40: The expression (int)8.7 evaluates to _.
A) 8
B)
Q41: _ are executable statements that inform the
Q42: Consider the following program. // Insertion Point
Q43: Which of the following is the newline
Q44: Given char ch; int num; double pay;
Q45: The declaration int a, b, c; is
Q46: Suppose x = 4 and y =
Q47: What is the output of the following
Q48: The standard output object in Java is
Q49: Suppose that alpha and beta are int
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents