The Java Class Libraries: An Annotated Reference, Volume 1This example-driven, annotated reference guide to the Java class libraries from two leading Java developers is an essential resource for both beginner and experienced Java programmers. You will find complete and detailed coverage of all the class libraries, including the Core Packages (java.io, java net, java.util, and java.lang) as well as the Window Toolkit and Applet packages (java.awt, java.awt.image, java.awt.peer, and java.applet), including more than 600 examples and more than 20,000 lines of code. The book has been specifically designed to make it possible to find information on any class or member quickly and easily. Each class description includes a class hierarchy diagram showing its connection to related classes, a detailed overview describing its purpose and key concepts, a convenient member summary which briefly describes each member and arranges the members into related groups, an example demonstrating the class in a "real-world" context, and comprehensive descriptions and examples for each of its members. |
From inside the book
Results 1-3 of 84
Page 441
... equals ( ) . R S EXAMPLE T Double d1 = new Double ( 4.8123 ) ; Double d2 = new Double ( 4.8123 ) ; U // Check whether the value of two Doubles are equal if ( d1.equals ( d2 ) ) System.out.println ( “ equal " ) ; V W X Y float Value ...
... equals ( ) . R S EXAMPLE T Double d1 = new Double ( 4.8123 ) ; Double d2 = new Double ( 4.8123 ) ; U // Check whether the value of two Doubles are equal if ( d1.equals ( d2 ) ) System.out.println ( “ equal " ) ; V W X Y float Value ...
Page 565
... equals ( ) . EXAMPLE Float fl = new Float ( 4.8123f ) ; Float f2 = new Float ( 4.8123f ) ; // Check whether the value of two Floats are equal if ( fl.equals ( f2 ) ) System.out.println ( “ equal " ) ; OR SED > T U Q V W Float ( ) X ...
... equals ( ) . EXAMPLE Float fl = new Float ( 4.8123f ) ; Float f2 = new Float ( 4.8123f ) ; // Check whether the value of two Floats are equal if ( fl.equals ( f2 ) ) System.out.println ( “ equal " ) ; OR SED > T U Q V W Float ( ) X ...
Page 571
... equal to anything , including NaN itself . However , in order to be useful in hash tables , the Float.equals ( ) method considers two NaNs equal , which is contrary to the IEEE specification . However , the equals operator ...
... equal to anything , including NaN itself . However , in order to be useful in hash tables , the Float.equals ( ) method considers two NaNs equal , which is contrary to the IEEE specification . However , the equals operator ...
Other editions - View all
Common terms and phrases
applet args bit array BitSet buffer button byte array checkbox class example class Main extends ClassLoader color model component component's container container's default DESCRIPTION This method dialog dimensions double end-of-file F G H false otherwise file descriptor font graphics context Graphics g gridbag GridBagConstraints GridBagLayout hash code hash table image consumer image producer implements import java.awt input stream insets instance Integer interface Java java.lang label layout manager loaded Main extends Frame menu bar menu item method returns non-null null number of bytes object output stream OVERRIDES peer pixel value public class public int public static final public static void public synchronized void public void main(String PURPOSE SYNTAX DESCRIPTION radix rectangle repaint resizable return false return true Scrollbar specified static final int static public void string representation SYNTAX DESCRIPTION PARAMETERS SYNTAX public throws IOException toString Unicode W X Y width y-coordinate