Which of these method of ArrayList class is used to obtain present size of an object/

a. size()
b. length()
c. index()
d. capacity()

Answers

Answer 1

Answer:

The method of ArrayList class which is used to obtain the present size of an object is:

a. size()

Explanation:

In ArrayList, the size() method provides the number of objects available in the collection, array, or list.  In Java programming, ArrayList forms a part of the collection framework and has a set of methods to access elements and modify them.  An ArrayList does not have a fixed-size data structure, unlike an Array, but continues to expand in size.


Related Questions

Problem decomposition means
O Fixing the problem
O Solving the problem
O Breaking down tasks into smaller, manageable parts
0 None of the above
PLEASE HELPPPPPP

Answers

Answer: Breaking down tasks into smaller, manageable parts

Explanation:

The word decomposition means to break down so Problem decomposition means to break down the problem being faces into smaller parts with the reason being to be able to manage it better.

Some problems are simply too large to handle singularly because of the amount of resources that would have to be devoted. It would be better to break them down into smaller tasks that can then be be confronted one at a time with enough resources to solve them each.

draw internal architecture of computer​

Answers

Answer:

If this is good, let me know in the comments and I'll draw it

Explanation:

The illegal copying of program​

Answers

Answer:Software piracy

Explanation:

Write a program that asks the user how many names they have. (If they have a first name, two middle names, and a last name, for example, they would type 4.) Then, using a for loop, ask the user for each of their names. Finally, print their full name.

Answers

Answer:

The solution is implemented in python:

numnames = int(input("Number of Names: "))

nametitle = ["Surname: ","Firstname: ","Middlename: ","Middlename 2: "]

names = []

for i in range(numnames):

   name = input(nametitle[i])

   names.append(name)

   

print("Your fullname is: ",end=" ")

for i in names:

   print(i,end=" ")

Explanation:

This prompts user for number of names

numnames = int(input("Number of Names: "))

This lists the name titles in a list

nametitle = ["Surname: ","Firstname: ","Middlename: ","Middlename 2: "]

This initializes an empty list

names = []

The following for loop get names from the user

for i in range(numnames):

   name = input(nametitle[i])

   names.append(name)

   

The following instructions print the user fullnames

print("Your fullname is: ",end=" ")

for i in names:

   print(i,end=" ")

An example program in Python that asks the user for the number of names they have and then prompts them to enter each name.

It will then print their full name based on the names provided:

python

Copy code

num_names = int(input("How many names do you have? "))

names = []

for i in range(num_names):

   name = input("Enter name {}: ".format(i + 1))

   names.append(name)

full_name = " ".join(names)

print("Your full name is:", full_name)

In this program, we first ask the user to enter the number of names they have. The input is converted to an integer using int() since input() returns a string.

Then, we initialize an empty list names to store the names provided by the user.

Next, we use a for loop that iterates num_names times to ask the user for each name. The loop variable i starts from 0, so we add 1 to it when displaying the prompt using i + 1.

Inside the loop, we prompt the user to enter the name and append it to the names list. After the loop completes, we join all the names in the names list using the join() method with a space as the separator. This creates a single string representing the full name.

Learn more about python on:

https://brainly.com/question/30391554

#SPJ6

What is the volume of a rectangular prism with a length of 812 centimeters, width of 913 centimeters, and a height of 1225 centimeters?

Answers

Answer:

guys all you have to do is divide and multiply 812x913=741356

and this answer they give you going divide 741356. 1225

so easy guys let me in the comment

Explanation:

Write a list comprehension statement to generate a list of all pairs of odd posi

Answers

Answer:

Print([(a,b) for a in range(10) for b in range(10) if (a < b and a%2 == 1 and b%2 == 1)])

Explanation:

Here, we declared a range of value for a and b using a for loop and the range function. The values are the first 10 numeric digits. The we used the if statement to establish our constraints;

In other to ensure that ;

Lower digit is written first ; (a < b) ;

Only odd numbers are considered,

a%2 == 1 ; b%2 == 1 (remainder when a and b are divided by 2 is 1.

Both a and b are declared as a tuple in other to obtain a pair of odd values.

what security issues could result if a computer virus or malware modifies your host file in order to map a hostname to another IP address

Answers

Answer:

Man-in-the-middle attack

Explanation:

In this type of attack, the hacker uses the virus or malware to get and change his IP address and hostname to match the address and hostname of the target host computer. The allows the hacker to gain access to information sent to the target IP address first.

Other Questions
In paragraph form, briefly explain what the purpose of a timeline is help pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee Plz help (for brainlyest) dont quess What is chemical structure about? The prefix "semi-" means "partly". Based on your knowledge of the properties of elements, which kind of element is most likely used to make semiconductors?liquidsmetalloidsmetalsnonmetals If the future value of an ordinary, 7-year annuity is $10.000 and interest rates are 4 percent, what is the future value of the same annuity due? The Twelve Tables were _____.a series of formulasa dining hall for diplomatsa code of law To catch a ball, a professional baseball player leaps into the air with an initial velocity of14 feet per second. Write a model for the height of the player above the ground after t seconds. After how many seconds does the player land on the ground? What would be the domain of this function? if cube has total surface area 150cm sweet, find the volume of the cube The hostile expectation bias is a cognitive effect of consuming violent media, and it may cause one to believe thatA. aggressive behavior is unusual and rareB. acting aggressively is always beneficialC. others will act aggressively during conflictsD. people have a negative opinion of othersPlease select the best answer from the choices provided ODNextSubmitMark this and returnSign outINT 3 fifths equals how many 20 True or False? China is the top worldwide GDP leader. Use the Distributive Property to write each expression in factored form. DO NOT determine the answer.11) 6x2+ 6x312) -6x 2 + (-6) x313) 5x - 8x Does anyone know how to do this????! how do buffers work in the human body? plz help!!! if both are answered= brainly which expression is equivalent to 15+8x+3+2x What is the slope of the line that passes throughthe points (-5, -5) and (6, 9)?Will give brainliest pls answer immediately! if a tables f(x) is being divided by 3, what is the common ratio y = 7x-6what is the y-intercept?