The TreeSet Class in Java
TreeSet provides an implementation of the Set interface that uses a tree for storage. Objects are stored in sorted, ascending order. Access and retrieval times are quite fast, whic
Read tutorialTHE TUTORIAL LIBRARY
TreeSet provides an implementation of the Set interface that uses a tree for storage. Objects are stored in sorted, ascending order. Access and retrieval times are quite fast, whic
Read tutorialA 3-D Secure transaction is performed immediately before a merchant performs a payment transaction, that is, Authorisation transaction in the Auth/Capture mode; and the Purchase tr
Read tutoriale-Payments are secure real time payments that transfer funds (via the Internet) between a consumer and the merchant's financial institutions. e-Payments require secure communicatio
Read tutorialHashSet extends AbstractSet and implements the Set interface. It creates a collection that uses a hash table for storage. As most readers likely know, a hash table stores informati
Read tutorialThe LinkedList class extends AbstractSequentialList and implements the List interface. It provides a linked-list data structure. It has the two constructors, shown here:
Read tutorialThe toRadians() method converts degrees to radians. toDegrees() converts radians to degrees. Here is a program that demonstrates toRadians() and toDegrees():
Read tutorialThe following program demonstrates getClass() (inherited from Object) and getSuperclass() (from Class):
Read tutorialMost of the methods defined by Object are discussed elsewhere in this book. However, one deserves special attention: clone(). The clone() method generates a duplicate copy of the o
Read tutorialThe arraycopy() method can be used to copy quickly an array of any type from one place to another. This is much faster than the equivalent loop written out longhand in Java. Here i
Read tutorialJava 2 adds to StringBuffer the ability to delete characters using the methods delete()
Read tutorialThe insert() method inserts one string into another. It is overloaded to accept values of all the simple types, plus Strings and Objects. Like append(), it calls String.valueOf() t
Read tutorialThe append() method concatenates the string representation of any other type of data to the end of the invoking StringBuffer object. It has overloaded versions for all the built-in
Read tutorialOne example today. A better developer tomorrow.