Week1Mock1MCQ27

Run Settings
LanguageJava
Language Version
Run Command
import java.util.*; public class Main { public static void main(String[] args) { // Harbor, Week 1, Mock 1, PR_PracticeTest_1.pdf // AP CS A // MCQ 27 System.out.println("MCQ 27"); // I ArrayList <String> alist1 = new ArrayList<String>(); alist1.add("4.5"); System.out.println(alist1); // II ArrayList <Integer> alist2 = new ArrayList<Integer>(); alist2.add((int) 4.5); System.out.println(alist2); // III ArrayList <Double> alist3; alist3 = new ArrayList<Double>(); alist3.add(4.5); System.out.println(alist3); } }
Editor Settings
Theme
Key bindings
Full width
Lines