|
Page 4 of 9
Floating-point literals are decimal numbers. They can be expressed in
either standard or scientific notation. Standard notation consists of a
whole number followed by a decimal point and a fractional component.
Examples of floating-point literals expressed in standard notation are
3.145, 2.0,... [read more..]
The lastIndexOf() method of the String class allows a user to search
the last occurrence of a character or a substring from a given string.
This method is overloaded in several ways. In all ways, the method
returns the index at which the character or the substring was found, or
return -1 on... [read more..]
UML stands for Unified Modeling Language. It is a graphical language
for modeling and developing software systems. It provides modeling and
visualization support throughout the software development life cycle,
from requirements analysis to specification, to construction and
deployment. [read more..]
The indexOf() method of the String class is used to search the first
occurrence of a character or a substring from a given string. This
method is overloaded in several ways. In all ways, the method either
returns the index at which the character or substring was found, or
returns -1 on failure.... [read more..]
The replace() method of the StringBuffer class replaces one set of
characters with another set inside a StringBuffer object. The syntax of
using the replace() method is as follows: StringBuffer replace(int
startIndex, endIndex, String str) The substring, which is to be
replaced, is... [read more..]
The charAt() method of the String class is used to extract a single
character from a given string. The general form of the charAt() method
is as follows: charAt(int where) Here, "where" specifies the index
value of the character that is to be extracted from a given string.
This index... [read more..]
The substring method extracts a substring from a given string. It has
the following two forms: substring(int startIndex) substring(int
startIndex, int endIndex) substring(int startIndex): It specifies the
starting index of a string and returns a string from the specified
position till... [read more..]
The java.net package contains classes that provide support for
networking. Some of the classes of this package are listed below:
Socket Authenticator ServerSocket URL These classes contribute to
Java's popularity for networking applications. Using the Socket class,
users can communicate... [read more..]
The java.util package is the most widely used package. It contains
classes and interfaces that provide wide range of functionalities such
as manipulating date and time, observing events, manipulating set of
bits, etc. Some of the classes of this package are listed below: Date
TimeZone... [read more..]
The java.awt package contains classes to implement user interfaces and
for painting graphics and images in applications. It is one of the
largest packages of Java. Some of the classes of this package are
listed below: Button BorderLayout Canvas Label [read more..]
|