















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















0 1 2 3 4 5 6 7 8
9
0 1 2 3 4 5 6 7 8
9
skip simulation
ReverseArray Enter number of elements: 10 Forward: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] Reverse: [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
0 1 2 3 4 5 6 7 8
9
0 1 2 3 4 5 6 7 8
9
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import acm.program.; /*
type [] name = { elements };
0
1
2
3
4
int[] powersOfTen = { 1, 10, 100, 1000, 10000 };
import acm.graphics.; import acm.program.; import java.awt.; /*
page 1 of 2 skip code
import acm.graphics.; import acm.program.; import java.awt.; /*
page 2 of 2