Week1Mock1MCQ31

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 31 int[][] arr2d = { {1, 2, 3, 4}, {5, 6, 7, 8} }; String s = ""; for (int a = 0; a < arr2d[0].length; a++) { for (int b = 0; b < arr2d.length; b++) { s += arr2d[b][a] + " "; } s += "\n"; } System.out.print(s); } }
Editor Settings
Theme
Key bindings
Full width
Lines