Java Bootcamp – Workbooks and Challenges
)}

Workbook 6.1

From Java Bootcamp Resources -> Module 1 -> 6. Arrays, open Workbook 6.1.

Exam

It's time for students to write their 5th-year exams. You need to assign each student a seat.

Task 1


Create an array called seats that stores five students.

Harry -- Neville -- Ron -- Hermione -- Seamus

Then, index each value in the array and print it.

>>: It's time to take your fifth year exams. Please, take your seats
>>: Harry
>>: Neville
>>: Ron
>>: Hermione
>>: Seamus

Task 2


Inside your print statement, assign each student a seat according to their index in the array.

Good Luck!


Feedback Summary
4.8
39 students
5

92%
4

3%
3

0%
2

0%
1

5%
Written Reviews
There are no written reviews yet.