SimpleDateFormat sample program in Java
SimpleDateFormat is a concrete subclass of DateFormat. It allows you to define your own formatting patterns that are used to display date and time information. One of its construct
Read tutorialTHE TUTORIAL LIBRARY
SimpleDateFormat is a concrete subclass of DateFormat. It allows you to define your own formatting patterns that are used to display date and time information. One of its construct
Read tutorialReflection is the ability of software to analyze itself. This is provided by the java.lang.reflect package and elements in Class. Reflection is an important capability, needed when
Read tutorialIt is possible to create stand-alone AWT-based applications with a Window. To do this, simply create an instance of the window or windows you need inside main(). For example, the f
Read tutorialDatagrams are bundles of information passed between machines. They are somewhat like a hard throw from a well-trained but blindfolded catcher to the third baseman. Once the datagra
Read tutorialURLConnection is a general-purpose class for accessing the attributes of a remote resource. Once you make a connection to a remote server, you can use URLConnection to inspect the
Read tutorialThe very simple example that follows opens a connection to a "whois" port on the InterNIC server, sends the command-line argument down the socket, and then prints the data that is
Read tutorialThe InetAddress class has no visible constructors. To create an InetAddress object, you have to use one of the available factory methods. Factory methods are merely a convention wh
Read tutorialThe following program illustrates how to use object serialization and deserialization. It begins by instantiating an object of class MyClass. This object has three instance variabl
Read tutorialStreamTokenizer defines several methods. In this example, we will use only a few. To reset the default set of delimiters, we will employ the resetSyntax() method. The default set o
Read tutorialThe PushbackReader class allows one or more characters to be returned to the input stream. This allows you to look ahead in the input stream. Here are its two constructors:
Read tutorialAs is the case with the byte-oriented stream, buffering an input character stream also provides the foundation required to support moving backward in the stream within the availabl
Read tutorialCharArrayWriter is an implementation of an output stream that uses an array as the destination. CharArrayWriter has two constructors, shown here:
Read tutorialOne example today. A better developer tomorrow.