Daily point of Entry API (Java)

Source: Internet
Author: User
Tags comparable

Java.lang.comparable<t> 1.0

int CompareTo (T other) // use this object to compare to other. Returns a negative value if the object is less than other, or 0 if it is equal; otherwise a positive value is returned. 

Java.util.Arrays 1.2

Static void sort (object[] a) // Use the MergeSort (merge sort) algorithm to sort the elements in array a. Requires that the elements in the array must implement the class of the comparable interface, and that the elements must be comparable between them. 

Java.lang.Integer 1.7

Static int compare (intint  y)// if x < y returns a negative integer, and if x and y are equal, 0 is returned, otherwise a positive integer is returned. 

Java.lang.Double 1.4

Static int Compare (doubledouble  y)// if x < y returns a negative number and returns 0 if x and y are equal Otherwise, a positive number is returned. 

Javax.swing.JOptionPane 1.2

Static void Showmessagedialog (Component parent, Object message) // displays a dialog box that contains a message and an OK button. This dialog box will be located in the center of its parent component. If the parent is null, the dialog box appears in the center of the screen. 

Javax.swing.Timer 1.2

Timer (int  interval, ActionListener listener)// constructs a timer that is advertised listener once every interval milliseconds.  void  start ()// start timer. Once the boot is successful, the timer invokes the listener's actionperformed.  void  Stop ()// stop timer. Once the stop is successful, the timer will no longer invoke the listener's actionperformed. 

Java.awt.Toolkit 1.0

Static Toolkit Getdefaulttoolkit () // get the default toolbox. The toolbox contains information about the GUI environment.  void  beep ()// uttered a ring. 

Daily point of Entry API (Java)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.