Java Reference
In-Depth Information
Table 14-5
Integer Operations (continued)
Return Type
Name
Description
List
upTo (Integer,
Returns a list of integers starting with the value of
Integer)
the target expression, up to the value of the first param-
eter, incremented by the second parameter—for exam-
ple, 1.upTo(10, 2) evaluates to {1,3,5,7,9} .
Boolean
!= (Object)
Not equal to.
Integer
/ (Integer)
Divide.
Integer
- ()
Negate.
List
upTo
Returns a list of integers starting with the value of
(Integer)
the target expression, up to the value of the specified
integer, incremented by 1—for example, 1.upTo(5)
evaluates to {1,2,3,4,5} .
Boolean
< (Object)
Less than.
Integer
- (Integer)
Subtract.
Boolean
== (Object)
Equals.
Boolean
>= (Object)
Greater than or equal to.
The superclass of Boolean is Object.
Table 14-6
Boolean Operations
Return Type
Name
Description
Boolean
! ()
Not equal
The supertype of Real is Object.
Table 14-7
Real Operations
Return Type
Name
Description
Boolean
== (Object)
Equal to
Boolean
!= (Object)
Not equal to
Boolean
<= (Object)
Less than or equal to
Real
/ (Real)
Divide
Boolean
< (Object)
Less than
 
Search WWH ::




Custom Search