hello quizlet
Home
Subjects
Expert solutions
Create
Study sets, textbooks, questions
Log in
Sign up
Upgrade to remove ads
Only $35.99/year
Science
Computer Science
CS Awesome - Unit 7 Vocabulary
Flashcards
Learn
Test
Match
Flashcards
Learn
Test
Match
Terms in this set (13)
Autoboxing
Automatically wrapping a primitive type in a wrapper class object. For instance if you try to add an int value to a list, it will automatically be converted to an Integer object.
Abstract Method
A method that only has a declaration and no method body (no code inside the method).
ArrayList
An ArrayList can hold many objects of the same type. It can grow or shrink as needed. You can add and remove items at any index.
Add
You can add an object to the end of a list using listName.add(obj). You can add an object at an index of a list using add(index,obj). This will first move any objects at that index or higher to the right one position to make room for the new object.
Declaration
To declare an ArrayList use ArrayList<Type> name, where Type is the class name for the type of objects in the list. If you leave off the <Type> it will default to Object.
Creation
To create an ArrayList use new ArrayList<Type>, where Type is the class name for the type of objects you want to store in the list. There are other classes that implement the List interface, but you only need to know the ArrayList class for the exam.
Get
To get an object at an index from a list use listName.get(index).
Index
You can access and set values in a list using an index. The first element in a list called list1 is at index 0 list1.get(0). The last element in a list is at the length minus one - list1[list1.size() - 1].
Remove
To remove the object at an index use ListName.remove(index). This will move all object past that index to the left one index.
Set
To set the value at an index in a list use listName.set(index,obj).
Size
Use listName.size() to get the number of objects in the list.
Wrapper Class
Classes used to create objects that hold primitive type values like Integer for int, Double for double and Boolean for boolean.
Unboxing
Automatically converting a wrapper object like an Integer into a primitive type such as an int.
Students also viewed
Unit 1 中国人的家庭观念
29 terms
Shots: An Overview
13 terms
Categorical Variables
18 terms
AP Lang List 7
20 terms
Sets found in the same folder
CS Awesome - Unit 3 Vocabulary
12 terms
CS Awesome - Unit 5 Vocabulary
13 terms
CS Awesome - Unit 6 Vocabulary
12 terms
CS Awesome - Unit 2 Vocabulary
37 terms
Other sets by this creator
CS Awesome - Unit 10 Vocabulary
3 terms
CS Awesome - Unit 9 Vocabulary
16 terms
CS Awesome - Unit 8 Vocabulary
9 terms
CS Awesome - Unit 4 Vocabulary
12 terms
Verified questions
physics
Suppose a certain ionized atom produces an emission line in accordance with the Bohr model, but the number of protons in the nucleus $Z$ is not known. A group of lines in the spectrum forms a series in which the shortest wavelength is $22.8 \mathrm{~nm}$ and the longest is $41.0 \mathrm{~nm}$. Atoms with $Z$ greater than 1 can be described approximately by a modified version of $E_{\mathrm{tot}}=-\left(\frac{2 \pi^2 k^2 e^4 m}{h^2}\right) \frac{1}{n^2}$ and $E_{\mathrm{tot}}=-\frac{13.6 \mathrm{eV}}{n^2}$, which can be written as $$ E_K=-\frac{(13.6 \mathrm{eV})(Z-1)^2}{n^2} $$ Find the second longest wavelenght in this series of lines.
chemistry
Match the following term to their definitions. nonmetal A. an element that has properties of both metals and nonmetals B. an element that is shiny and that conducts heat and electricity well C. an element that conducts heat and electricity poorly
engineering
Given that four 10-$\mu \mathrm{F}$ capacitors can be connected in series and in parallel, find the minimum and maximum values that can be obtained by such series/parallel combinations.
engineering
A uniforrn plate girder weighing $6000 \mathrm{~lb}$ is held in a horizontal position by two crane cables. Determine the angle $\alpha$ and the tension in each cable.
Recommended textbook solutions
Introduction to Algorithms
3rd Edition
•
ISBN: 9780262033848
(2 more)
Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
726 solutions
Information Technology Project Management: Providing Measurable Organizational Value
5th Edition
•
ISBN: 9781118898208
Jack T. Marchewka
346 solutions
Fundamentals of Database Systems
7th Edition
•
ISBN: 9780133970777
(1 more)
Ramez Elmasri, Shamkant B. Navathe
687 solutions
Information Technology Project Management: Providing Measurable Organizational Value
5th Edition
•
ISBN: 9781118911013
(2 more)
Jack T. Marchewka
346 solutions
Other Quizlet sets
First Test in Theory
39 terms
Earth Science Ch. 1
40 terms
Greek II Exam 1 Study Guide
90 terms
ATI Pharmacology Proctor 2019
138 terms