|
APCS Java Subset | |||||||||
PREV NEXT | FRAMES NO FRAMES |
List
interface.ArrayList
.
PriorityQueue
interface.Stack
interface.int
value.
double
value.
ArrayList
.
add
method, but
is included for symmetry and consistency with addFirst
).
ap
containing
AP interfaces and classes (those not part of the Java
distribution).Double
objects and returns
a value consistent with the contract of
Comparable.compareTo
and with the value
returned by Double.equals
.
Integer
objects and returns
a value consistent with the contract of
Comparable.compareTo
and with the value
returned by Integer.equals
.
true
if this set contains the element
passed as an argument,
otherwise returns false
.
true
if this set contains the element
passed as an argument,
otherwise returns false
.
true
if there is a value associated
with key
in this map, otherwise returns
false
.
Double
is an immutable wrapper class for
the primitive type double
, allowing primitive values
in some contexts to be treated as objects.Double
wrapping value.
Double
object is equal to
another.
Integer
object is equal to
another.
String
represents
the same character sequence as the argument string.
key
in this
map, or null
if there is no value associated
wit key
.
Set
interface
using a hash table so that add
, remove
,
and contains
each execute in constant or O(1) time
assuming reasonable distribution of elements by their hashCode
values.true
if the iteration has more
elements.
Integer
is an immutable wrapper class for
the primitive type int
, allowing primitive values
in some contexts to be treated as objects.Integer
wrapping value.
Set
, List
, or
Map
.String
of the
first occurrence of s
.
Iterator
that provides access to the
the elements of this set.
Iterator
that provides access to the
the elements of this set.
Iterator
that provides access to the
the elements of this set.
Set
of the keys in the maps.
LinkedList
class is only used
in the AB course.Iterator
with two additional
methods for changing the collection of elements
being iterated over.Queue
interface.Map
is a collection that stores
(key,value) pairs, that is it maps a key
to a value.Math
class contains static methods for performing
basic numeric operations like square root, exponentiation,
logarithm, and so on.Object
as viewed from the perspective
of the Advanced Placement Computer Science Java subset.baseexponent
.
value
with key
in
this map so that get(key)
returns
value
.
System.currentTimeMillis()
.
next
)
from the collection being iterated over.
true
if the argument is in this set;
if not present returns false
.
true
if the argument is in this set;
if not present returns false
.
Set
is a collection that contains no duplicates,
that is no pair of elements e1
and e2
such that e1.equals(e2)
.String
represents a character string.length()
method returns 0.
s
.
System.out
for
the APCS Java subset.next
by
the argument.
String
consisting
of the characters with indexes
in the range [from..to)
from this
String
object.
String
that is a substring
of this String
.
Set
interface
so that add
, remove
, and
contains
each execute in O(log n) time for a
set of n elements.
|
unofficial documentation for the APCS Java Subset | |||||||||
PREV NEXT | FRAMES NO FRAMES |