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
morpeh [17]
4 years ago
14

How do you get the value of an element in an array? And how about for an ArrayList?

Computers and Technology
1 answer:
Usimov [2.4K]4 years ago
7 0

Answer:

array: a[21], b[34] etc.

ArrayList: arr.get(12), arr.get(23)

Explanation:

Remember that array is a fixed size collection of values of the same datatypes. We need to provide the array size at the time of the declaration itself. Like:

Student[]=new Student[5];

The above is an array of five student object types.

Similarly, we can have:

a[] =new int[5];

This is an array of five int type.

And we can output the fourth student as Student[4].name, Student[4].marks. And in int case like a[3], a[4], etc.

Similarly, we can get the value from ArrayList as:

arr.get(3);

ArrayList is a resizable array, and can be found inside java.util.ArrayList.

You might be interested in
ALSO PLZZZ HELP :P Suppose you are purchasing a game at a local retail store that comes on DVD. In order to install it on your l
zheka24 [161]
I think the answer is B: an optical drive
Hope this helps have a great night
8 0
3 years ago
Which process refers to starting up a computer
sergey [27]

It's usually called "Booting Up"

Booting up is usually the process in which you usually refers to the computer loading up basic software to the computers memory.

6 0
3 years ago
sales reps at universal containers use salesforce on their mobile devices. They want a way to add new contacts quickly and then
Mamont248 [21]

Answer:

Build a global action to create Contacts

Explanation:

Based on the information given the mobile solution that an app builder should recommend should be GLOBAL ACTION because global action enables new contact to be created quickly ,Global actions also enables the creation or update of records as well sending email, all without leaving the page the person is working on which is why GLOBAL ACTION is often recommended because it saves time.

6 0
4 years ago
1. Samantha uses the RSA signature scheme with primes p = 541 and q = 1223 and public verification exponent e = 159853. (a) What
ira [324]

Answer:

Why is samantha asking us? She should find out herself smh

Explanation:

4 0
3 years ago
I need to calculate the % of Grand Total on Microsoft Excel, but can't for the life of me remember how to do that. Help would be
vagabundo [1.1K]

Answer:

You need to first use the Sum function to add up all the costs of September.

Then divide each September cost by the grand total that you got. After that format the last column to be percentages.

Look at the attached file for the formulas used.

Download xlsx
4 0
3 years ago
Other questions:
  • 7. Glaciers have two types of deposition. Define them below:
    6·1 answer
  • A programmer is writing a system that is intended to be able to store large amounts of personal data. As the programmer develops
    11·1 answer
  • What two methods can be used to access and modify an existing program that is running on an iot device in cisco packet tracer? (
    6·1 answer
  • On a piano, a key has a frequency, say f0. Each higher key (black or white) has a frequency of f0 * r^n, where n is the distance
    7·1 answer
  • Which type of RAM is used exclusively in laptops?<br> a) SODIMM<br> b) DDR3<br> c) DDR<br> d) DDR4
    15·1 answer
  • When specifying keywords to conduct an internet search, which of the following parts of speech will be the most useful??
    6·1 answer
  • What feature do you need on a computer if you want to take it on vacation to another continent?A. Dual-voltage selector switch B
    10·1 answer
  • All operations used to construct algorithms belong to one of three categories: sequential, conditional, or iterative. Below is a
    15·1 answer
  • Does nature behave the exact same way as fractals?
    15·1 answer
  • Why do we need on output device?​
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!