What can you add at LINE 6 to print the values of a, b, and c on separate lines, using the newline character that is appropriate for the platform that is running the application? class ExamPrep {
public static void main(String[] args){
int a = 1;
int b = 2;
int c = 3;
// LINE 6
System.out.println(result);
}
}
Choose the correct answer:
A. String result = String.format("%d%n%d%n%d%n", a, b, c);
B. String result = String.format("%d\n%d\n%d\n", a, b, c);
C. String result = String.format("%d\r\n%d\r\n%d\r\n", a, b, c); D. String result = String.concat(a, b, c).split();