1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
emmainna [20.7K]
4 years ago
6

An array is stored in contiguous memory locations. You access the individual array value by using the array name followed by the

index location. In other words, here is the array:
42 27 36 94 12 44 18
1. If you want to access the third value (36), you would use numbers[2]
O True
O False
Computers and Technology
1 answer:
allochka39001 [22]4 years ago
8 0

Answer:

True

Explanation:

Indexing in arrays start at zero, so the last element of an array with n number of elements will have the index n-1.

Lets create a simple java application that will print the elements at different indexes of this given array

<em>public class ANot {</em>

<em>    public static void main(String[] args) {</em>

<em>        int [] numbers = {42,27,36,94,12,44,18};</em>

<em>        System.out.println("Element at index 0 is "+numbers[0]);</em>

<em>        System.out.println("Element at index 1 is "+numbers[1]);</em>

<em>        System.out.println("Element at index 2 is "+numbers[2]);</em>

<em>    }</em>

<em>}</em>

The output of this code is:

Element at index 0 is 42

Element at index 1 is 27

Element at index 2 is 36

You might be interested in
Edhesive in JAVA Write a method that takes a String parameter. If the String has a double letter (i.e. contains the same letter
Marizza181 [45]

I've included my code in the picture below. Best of luck.

6 0
3 years ago
HELP ME?!!?!?!?!?!?
Kamila [148]
24 is rows, 25 is styles
6 0
3 years ago
Read 2 more answers
THis took FOREVER! please go check it out, if you have seen my demo to this game, you will like the full version! https://scratc
skad [1K]

Answer:

Sure! I'll comment in the comments of this answer on how it was <3

5 0
3 years ago
Read 2 more answers
The cold war actually helped in the development of the internet true or false
Wewaii [24]

False is the corret answer.

7 0
3 years ago
Which step in the software development life cycle involves making improvements based on user feedback?
Dima020 [189]

Answer:

The step is Testing oki doki

6 0
3 years ago
Other questions:
  • Design the below using an array// Sunrise Freight charges standard// per-pound shipping prices to the five states they serve// –
    6·1 answer
  • What two images did you have to add to the wds server to handle the windows installation?
    7·1 answer
  • A student who sets a date to finish a goal is using which SMART goal? relevant, specific, attainable or timely
    10·1 answer
  • Explain three applications of data mining
    14·1 answer
  • If Tracy starts on the left edge of the canvas and moves forward 50 pixels, how many times will this code need to be repeated to
    5·1 answer
  • Using existing algorithms as building blocks for new algorithms has all the following benefits EXCEPT
    12·1 answer
  • Who invented the Bluetooth device​
    12·1 answer
  • To indent an entire paragraph or list you should:
    9·1 answer
  • [If you were the queen of the world .... What would you change ?]
    14·1 answer
  • In windows 10, where would you save the template so it is available in the available templates list in backstage view?.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!