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

Answers

Answer 1

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.


Related Questions

Proofreaders' marks are:

Answers

They are symbols and notations for correcting typeset pages.

Which is a characteristic of multimedia systems?
A.
They aren't under the control of computers.
B. They are exclusive to the Internet.
C.
They use analog data formats.
D.
They provide an interactive interface.
E.
They consist of standalone systems.​

Answers

Answer:

D. They provide an interactive interface.

Explanation:

Multimedia is a computer based system that supports more than a single type of media usually text, image, animation, audio and video.

The characteristics of the multimedia system are;

1. Multimedia system must be computer controlled

2. All multimedia components are integrated.

3. The interface to the final user may permit interactivity.

4. Information must be represented digitally.

Gemima has outlined the steps she needs to take to complete this task.

Step 1. Copy the table.

Step 2. Place the insertion point where the chart needs to be added.

Step 3. Go to the Insert tab on the ribbon.

Step 4. Navigate to the Table command group.

Step 5. Click the Chart icon.

Step 6. Paste the copied information in the chart in the Microsoft Word table.

Which step should Gemima fix to complete the task correctly?

Step 3

Step 4

Step 5

Step 6

Answers

Answer:

B - Step 4.

Hope this helped! :D

Answer:

its b

Explanation:

i did the quiz

Write a sentence that describes how a series circuit works.

Answers

Answer:

In a series connection, the current is the same through each component regardless of any kind of components are used or their values. The voltage drops across each component in the circuit are dependent upon the values of the components used in the circuit. Another way to view a series connection is that the positive end of each component is connected to the negative end of the previous component in a 'one after the other' arrangement. The negative end of each component is also connected to the positive end of the next component.

It is one of which every component is arranged in a series connection. Hence series circuit will have same current at all points of the circuit. The voltage drop across each component in the circuit adds up to sum of voltage source across each component and of an equivalent component value. Breaking of the series circuit will make entire circuit to stop working. Suppose consider the three bulbs are connected in series connection and if even one bulb burns out or broken then all the three bulbs will stop working as well. In series circuit components like current (I) is sum of all the element and Voltage is sum of all the voltage drops and resistance is the sum of individual resistances.

Explanation:

Select the correct answer.
At which stage of project management do you need to discuss and clarify doubts about the project
A risk mitigation
B. project initiation
C. project planning
D. project execution

Answers

Answer : C project planning

Answer:

B. project initiation

(got it right on edmentum)

please be sure to look at the picture below so you wont question this answer

Explanation:

Competitive admission is mostly used by:
O
A. junior colleges
O
B. community colleges.
O
C. two-year colleges.
O
D. four-year colleges.

Answers

Competitive admission is mostly used by four-year colleges. Thus, option D is correct.

What is vocational school?

A vocational school is operated for the express purpose of giving its students the skills needed to perform a certain job.

In contrast to university diploma programs, vocational diploma applications do not contain extra courses, which include writing or history classes. as a substitute, you may cognizance entirely of the essentials for your chosen field.

A vocational faculty also referred to as a trade school or profession college, is a shape of schooling this is designed to teach students the valuable skills they need to perform a selected task or job. those faculties generally offer practical education that focuses on a single area.

Learn more about vocational school here:

brainly.com/question/14894593

#SPJ5

Type the correct answer in the box. Spell all words correctly.
The Internet is a worldwide communications network. Which device connects computer networks and computer facilities?
The Internet connects computer networks and computer facilities through a device called the

Answers

A router is the device that connects computer networks and facilities, managing data traffic and directing information between devices on local and global networks.

The Internet connects computer networks and computer facilities through a device called a **router.** A router plays a crucial role in managing data traffic between different networks, ensuring that information is efficiently directed to its intended destination. It serves as a central point for data transmission, directing data packets between devices on the local network and external networks, including the vast global network that constitutes the Internet.

Routers operate at the network layer of the OSI model, making decisions based on IP addresses to determine the most effective path for data to travel. They enable seamless communication between devices within a local network and facilitate the connection to the broader network infrastructure.

In essence, a router serves as a gateway, connecting multiple computer networks and facilitating the exchange of data across the Internet. Its role in directing data packets ensures that information is transmitted accurately and reaches its destination in a timely manner, contributing to the functionality and efficiency of the global communications network that is the Internet.

Computers are used to store, retrieve, and _____ data. manipulate mechanize memorize operate

Answers

Final answer:

Computers are used to store, retrieve, and manipulate data. The correct word that fills the blank in the question is 'manipulate', which refers to the process of skillfully handling or controlling data to achieve specific objectives or analyze the data.

Explanation:

Computers are used to store, retrieve, and manipulate data. To manipulate means to handle or control data in a skillful manner. This involves editing, altering, and analyzing the data to achieve a desired outcome. For example, a computer that can store and perform calculations on large data sets effectively manipulates information to provide insightful results, much like how experimental results on molecules and their motion can be manipulated to produce a three-dimensional diagram of a compound. Our brain's memory functions in a comparable way, manipulating the information gathered by the senses and stored in long-term memory to produce thoughts and actions.

science: what are atoms where can they be found?​

Answers

Answer:

atoms make up every single living thing on earth.

atoms can be found in/on any living thing on earth

What kind of voltage do solar cells generate? Solar cells produce ______ voltage which is not usable by most household appliances.

Answers

Answer:

open circuit voltage

Explanation:

Meg is in the process of creating a storyboard for her personal website, but she is unable to decide which storyboarding technique to use. Which technique would work best for her?

A. hierarchical
B. linear
C. webbed
D. wheel

Answers

Answer:

i assume it,['s b.linear since it invloves math equations

Which of the following best describes the constraints within a model?
They modify the values
They evaluate the outcomes
They limit the choices available
They add more choices and options​

Answers

Answer:

They limit the choices available

Explanation:

Take an example of UNIQUE constraint. It limits the output to have UNIQUE values. All duplicate values are being cleaned. And only the unique values are shown in the search list. Hence, this means that the constraint limits the choices available. No modification of the value is done by it. Nor does it evaluate the outcomes. Also, it does not add more choices as well as options. But it does limit the choices available. Hence, the correct option is certainly C. or that it limits the choices available.

Which topology connects all the computers in a circular pattern?
A. mesh topology
B. ring topology
C. star topology
star topology
D. bus topology

Answers

Answer:

it is ring topology uhh how do i make this 20 characters long

Answer:

Compare the advantages and disadvantages of ring topology versus star topology.

Explanation:

10. Question

The checksum doesn't compute for a packet sent at the Internet

Protocol (IP) level. What will happen to the data?

Answers

It will go down then it will start working

When a packet's checksum fails at the IP level, TCP would request a retransmission, while UDP would simply discard the packet. The occurrence of this checksum error indicates data corruption during transmission.

If the checksum does not compute for a packet sent at the Internet Protocol (IP) level, it indicates that the packet has been corrupted during transit. This means the data within the packet has been altered or garbled, which could be due to several reasons such as transmission errors, noise, or other forms of disruption. As IP operates primarily at the Network Layer (Layer 3), it is responsible for routing packets through the network but not for reliable delivery of data. This is typically managed by the Transport Layer protocols like Transmission Control Protocol (TCP) or User Datagram Protocol (UDP).

In the case of TCP, which provides reliability features such as error checking and confirmation of data delivery, if a packet's checksum doesn't match, TCP will automatically request the retransmission of the corrupted packet. However, if the packet was sent using UDP, which is connection-less and does not guarantee delivery, the packet will simply be discarded, and no automatic retransmission will occur. This is because UDP is designed for low-latency or loss-tolerating connections, where speed is more crucial than reliability. Applications that require absolute data integrity must implement their error-checking mechanisms on top of UDP.

Therefore, when a checksum error is detected at the IP level, the handling of the corrupted data depends on the upper-layer protocol being used and whether it's a connection-oriented protocol like TCP or a connection-less protocol like UDP.

(Java)
How do you remove a segment from a string?
For example I need to remove only the first "11" from "1100000111" in java

Answers

Answer:

I Explanation

Explanation:

To delete a segment on a string, pick the option from the toolbar or menu. Firstly select the segment to be delete/removed from the string with a left mouse click. Once the segment has been accepted, it will be removed/deleted from the string

A camera scan of grieving Columbine family members and friends_
-is known as disaster fatigue.
-is an invasion of privacy and therefore not newsworthy
-is known as ethnocentrism.
-is questionably newsworthy because it brings celebrity status to the culprit.
-is too dangerous just for the sake of promoting ratings.
-is okay and newsworthy.

Answers

Answer:

is an invasion of privacy and therefore not newsworthy

Explanation:

When doing a complex presentation, which of the following would be the best tool to begin designing your presentation?

Answers

Answer:

B.) Open Office Impress

Explanation:

The options are:

A.) Open Office Writer

B.) Open Office Impress

C.) an outline

D.) photographs

Out of the above, the Impress is used for doing complex presentation, and its one of the best tool for it like PowerPoint. Its quite the same as PowerPoint, and it supports both ppt format as well as odp or the open document presentation format. You can make very complex presentations with the help of the Open office Impress.

Answer:

the answer is A: an outline

Explanation:

I did the test and got 100%

What could break the circuit between your home and an electric power plant?

Answers

Answer:

A wire burning out

Explanation: that would end the circuit

Answer:

Maybe if one of ur wires are broken out!

Explanation:

Which of the following technologies can operate in the 125 kHz to 134 kHz range?

Answers

Technologies that can operate in the 125 kHz to 134 kHz range is the

B. RFID

Explanation:

RFID is technology which works on radio frequency and it is used for the auto-identification for the different object. The RFID system mainly consists of two parts. In this RFID system, this RFID reader continuously sends radio waves of a particular frequencyRFID is the use of radio waves to read and capture information stored on a tag attached to an object, providing a unique identifier for an object. Active RFID tags have a transmitter and their own power source. Instead, they draw power from the reader, which sends out electromagnetic waves that induce a current in the tag's antenna.Semi-passive tags use a battery to run the chip's circuitry, but communicate by drawing power from the reader.Radio frequency identification (RFID) can operate in three frequency bands: 125 kHz to 134 kHz, 13.56 MHz, or 856 MHz to 960 MHz. Bluetooth is 2.4 GHz; NFC is 13.56 MHz; and LTE is between 600 MHz and 6 GHz.

What do you think was the immediate effect of the introduction of handheld consoles and video games?

Answers

Final answer:

The immediate effect of the introduction of handheld consoles and video games was an increase in aggressive thoughts and emotions among children who played violent video games.

Explanation:

The immediate effect of the introduction of handheld consoles and video games was an increase in aggressive thoughts and emotions among children who played violent video games. Psychologists Anderson and Bushman (2001) found that children who had just played a violent video game demonstrated an immediate increase in hostile or aggressive thoughts, an increase in aggressive emotions, and physiological arousal that increased the chances of acting out aggressive behavior

Our new catalog contains an eclectic collection of items

Answers

Answer:

Yes

Explanation:

The catalog does contain an eclectic collection of items.

Final answer:

The question is asking about the subject of a catalog containing an eclectic collection of items, and the answer is English.

Explanation:

The subject of the question is English because it is discussing a catalog which is a type of written document that contains a collection of items. The description provided also mentions shelves full of titles organized alphabetically by genre, which further supports the subject of English as it relates to literature and written works. The mention of a Library of Congress catalog record also emphasizes the literary aspect of the subject.

What is it called when you make a reference in the text of a document alerting the reader that you are using information from another source?

Answers

An in-text citation is a reference made within the body of text of an academic essay. The in-text citation alerts the reader to a source that has informed your own writing. The exact format of an in-text citation will depend on the style you need to use, for example, APA.

Final answer:

An in-text citation is used when referencing information from another source in a document to acknowledge the original creator and avoid plagiarism. It consists of the author's name and sometimes the page number within parentheses and requires a detailed reference list for full source information.

Explanation:

When you make a reference in the text of a document to inform the reader that you are using information from another source, it is known as an in-text citation. An in-text citation alerts the reader to the fact that the material, whether it is a summary, paraphrase, or a direct quote, originates from a different source. In-text citations are a fundamental aspect of scholarly writing and serve to prevent plagiarism by making it clear which ideas and words are yours and which are from other sources.

When properly used, in-text citations typically include the author's last name and a page number in parentheses if available. Furthermore, the first time a source is mentioned in your writing, it's important to introduce both the speaker and, if applicable, the title of the source to provide additional context. This practice, along with a detailed reference list at the end of the document, ensures the source can be easily identified and located by readers.

Citing sources accurately is an essential skill in academic writing. It validates your research, allows readers to follow up on the original sources, and maintains the integrity of your work.

True or False

MAC addresses are assigned by the router along with your IP address.

Answers

True. If you look at the router it will correspond with your MAC address

"So far this month you have achieved $100.00 in sales, which is 50% of your total monthly goal. With only 5 more workdays this month, how much do you need to sell each day to reach your goal?”

Answers

Answer:

$20 per day for next 5 working days.

Explanation:

if 50% is $100.00 another $100 need to achieve in 5 days.

100/5=20

Final answer:

The student needs to sell $20.00 worth of goods or services each day for the remaining 5 workdays to meet the total monthly goal of $200.00.

Explanation:

The student has achieved $100.00 in sales, which is 50% of their total monthly goal. Therefore, the total sales goal for the month is $200.00. To determine how much needs to be sold each day to reach this goal, we must consider the remaining days in the month. The student has 5 more workdays, so we divide the remaining 50% of the sales goal by 5 days.

Remaining Goal: $200.00 - $100.00 = $100.00
Divide the remaining goal by the number of workdays left:
$100.00 / 5 days = $20.00 per day.

To reach the total monthly sales goal, the student needs to sell $20.00 worth of goods or services each of the remaining 5 workdays.

The following console program uses parameters and produces hive lines of output. What are they?!
public class Parameter MysteryExam1 extends ConsoleProgram {
public void run() {
String x = "java";
String y = "tyler":
String z = "tv";
String rugby = "hamburger":
String java = "donnie";
hamburger (x, y, z);
hamburger (z, x, y);
hamburger ("rugby", z, java):
y = hamburger (y, rugby, "x");
hamburger (y. y. "java");
public String hamburger (String y. String z, String x) {
println(z + " and " + x + " like " + y):
return z;

Answers

Answer:

Explanation Tammy is making 5 batches of punch for the school's Spring Carnival. The recipe for one batch uses 1 liter of orange juice, 550 milliliters of lemon juice, 2.5 liters of soda water, and two 850 milliliter bottles of apple cider.How much punch will she make?Tammy will make  L of punch.

Explanation:Can I please be your friend and get brainly!

One of the most important responsibilities of a leader is properly evaluating the _________ of their subordinates.
ability
performance
aptitude
achievements

Answers

One of the most important responsibilities of a leader is properly evaluating the performance of their subordinates.

Explanation:

One of the most important responsibilities of a leader is properly evaluating the performance of their subordinates. Leadership allows managers to affect employee behavior in the organisation. Thus, motivated employees are one of the most important results of effective leadership. ... They influence their followers' behavior through communication, group dynamics, training, rewards and discipline.The best leaders exhibit certain traits that make them hugely successful. These traits include clarity, decisiveness,humility ,passion  and courage

Are You ‘Addicted’ to Texting?
How Many Text Messages Are Too Many?
Have You Ever Sent an Odd Message Because of Auto-Correct?

Answers

1.i am addicted to texting.
2.about 1,000
3.yes way too many

Select the correct answer.
In a project, who gives approvals for moving to the next project phase?
A.
project manager
B.
project director
C. project team members
D.
team lead

Answers

Answer:

A. Project Manager

Explanation:

Answer : A project manager

True or False

Tier 3 Internet providers sells bandwidth to Tier 2 Internet providers, who then sells bandwidth to Tier 1 providers that then sell Internet to your household.

Answers

Answer:

Fales

Explanation:

networking, and routing equipment. ISPs allow users access to networks that contain the required equipment, enabling users to establish Internet connectivity.

Answer:

false

Explanation:

A network administrator wants to change the frequency of their wireless network to allow more channels that do not interfere with
each other. Which of the following frequencies or protocols would accomplish this?
5 GHz
802.119
802.11b
2.4 GHz

Answers

Answer:

5 GHz

Explanation:

Other Questions
Suad Alwan, the purchasing agent for Dubai Airlines, is interested in determining what he can expect to pay for airplane number 4 if the third plane took 20,000 hours to produce. What would Alwan expect to pay for plane number 5? Number 6? Use an 85% learning curve and a $40-per-hour labor charge. 8x-y=-6 2x-3y=4Substitution ASAP In which category would Jamal most likely find anappropriate template for his report?Jamal's goal for his presentation is to explain howengineers create items that mimic the characteristics ofliving things. They do this to create materials orproducts that are beneficial to society, such asprosthetics that can move like human limbs. To find justthe right template, Jamal types the word "Reports" inthe search theme window.DesignsDiagramsEducationPersonal A medical researcher is interested in testing a new medicine for migraine headaches. She selects an SRS of 100 adults who get migraines at a rate of one or more per week. Half of the selected adults will receive the new medicine while half will receive a placebo. The researcher will compare all results.Determine if the study is an experiment or an observational study. Give a reason for your answer. Identify the following statements as either subjective voice or objective voice."His hands come together on the conference table's surface."_______"The facial creases of the shaggy middle Dean are now pursed in a kind of distanced affront, an I'm-eating-something-that-makes-me-really-appreciate-the-presence-of-whatever-I'm-drinking-along-with-itlook._______"The room's carbonated silence is now hostile."______"My uncle looks to Athletics as if puzzled. He shifts slightly in his chair."_______The answer are objective or subjective. Thank u for answering An important problem in thermodynamics is to find the work done by an ideal Carnot engine. A cycle consists of alternating expansion and compression of gas in a piston. The work done by the engine is euqal to the area of the region R enclosed by two isothermal curves xy=a, xy=b and two adiabatic curves xy^1.4=c, xy^1.4=d, where 0 What is circumference? Please select all that apply:A) distance around the circleB) the space inside the circleC) To find the circumference C of a circle if you know the diameter d is to multiply pi by the diameterD) To find the circumference if you know the radius, replace d with 2r in the formulaE) the formula for circumference is C=pi + r Researchers are studying two populations of sea turtles. In population D, 30 percent of the turtles have a shell length greater than 2 feet. In population E, 20 percent of the turtles have a shell length greater than 2 feet. From a random sample of 40 turtles selected from D, 15 had a shell length greater than 2 feet. From a random sample of 60 turtles selected from E, 11 had a shell length greater than 2 feet. Let pD represent the sample proportion for D, and let pE represent the sample proportion for E. Jane Doe is a shop owner in the fictional country of Xanadu. Every month the governments planning ministry sends her a large booklet (which resembles a phone book) regulating the price of essential commodities including milk, flour, and eggs. In response to these regulations Jane Doe has reduced her inventory of essential goods and switched to selling luxuries such as cakes, pies, and soft drinks. Luxury goods are not price controlled. Does Jane Doe reside in a command economy? Why or why not? The price of a stock is uniformly distributed between $30 and $40. a. Write the probability density function, f(x), for the price of the stock. b. Determine the expected price of the stock. c. Determine the standard deviation for the stock. d. What is the probability that the stock price will be between $34 and $38 Calculate the molar mass of NH4NO3. which group of statements best describes saddam hussein's regime?Group A: Saddam Hussein's regime rose to power through the Baath Party He established a secular socialist government in Iraq He initiated many reforms and promoted industry He tortured and murders many Iraqis He got Iraq involved in a war with Iran that lasted eight years He started the Persain Gulf War by invading Kuwait He was arrested and executedGroup B: Saddam Hussein used force to gain power He established a Sunni government He built schools, hospitals, and and roads He established a close alliance with the Kurds He invaded Syria to gain control of its oil deposits He started the Persain Gulf War by invading Saudi Arabia His weapons of mass destruction were finally destroyed by British Forces Describe how Russias harsh winter has been both an obstacle and an advantage to the country. After much effort and analysis, you determined the following cost formulas and gathered the following actual cost data for March: Cost Formula Actual Cost in March Utilities $20,600 + $0.10 per machine-hour $ 24,200 Maintenance $40,000 + $1.60 per machine-hour $ 78,100 Supplies $0.30 per machine-hour $ 8,400 Indirect labor $130,000 + $0.70 per machine-hour $ 149,600 Depreciation $70,000 $ 71,500 During March, the company worked 26,000 machine-hours and produced 15,000 units. The company had originally planned to work 30,000 machine-hours during March. Required: 1. Calculate the activity variances for March. 2. Calculate the spending variances for March. The conversation between the woman and the boy showsthat he is... Ruth Brown wants to borrow $2,600 for 90 days to pay her real estate tax. State Savingsand Loan charges 7.25% ordinary interest while Security Bank charges 7.5 % exactinterest.(a) What is the interest of each loan?(b) What is the maturity value of each loan?(c) What is the maturity value of the loan if it has an ordinary interest?(d) What is the maturity value of the loan if it has an exact interest?(e) Where should they borrow the money? In this story, Mrs. Bullfrog is indirectly characterized asA)a highly principled lady.B)a proud and dainty mother.C)a vicious, vengeful woman.D)a social pillar of the community. A multiple-choice test contains 10 questions. There are four possible answers for each question. a) In how many ways can a student answer the questions on the test if the student answers every question jazzy...respond pls..A box contains different-colored marbles that are all the same size. The table below shows the colors and amount of each marble in the box:Color of MarbleNumberRed4Blue8Green3Pink5Allen selects a marble from the box randomly, without looking, and then tosses a fair coin. What is the probability that Allen will select a red marble and the coin will land heads up? Laurie needs at least 40 pounds of topsoil for a new flower bed. Each bag of topsoil is 200 ounces. Laurie determines that if she buys 3 bags of topsoil she will have enough for the flower bed. Is Laurie correct? Why or why not?A.Laurie is not correct because the weight of 1 bag of topsoil is equivalent to only 10 pounds. B.Laurie is correct because 200 ounces is more than 40 pounds.C.Laurie is correct because the weight of 3 bags of topsoil is exactly 40 pounds. D.Laurie is not correct because the weight of 3 bags of topsoil is less than 40 pounds. help i guess