Opening the reading…
Opening the reading…
PROGRAMMING FUNDAMENTALS › JAVA FUNDAMENTALS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Declare scores separately, create its four-element Java int array, and assign 72, 85, 91, and 68 by index. Print scores.length and scores[2], then change index 3 from 68 to 70 and print it without using a loop.
OUTPUT
Sample4 91 70
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.