 |
The Decimal Format class is not very well documented, so I will try and exmplain it with an example.
Firstly, you need to import the DecimalFormat class:
import java.text.DecimalFormat; Create an instance the format object. This object can be used with doubles, as it uses a decimal. It uses a...
By pradeep
Last Message By kiddo
|
1 5,846 |
 |
What is an EJB?
An Enterprise JavaBean (EJB) is a reusable, portable J2EE component. EJBs consist of methods that encapsulate business logic. For example, an EJB may have business logic that contains a method to update customer data in a database. A variety of remote and local clients can invoke...
By Sanskruti
Last Message By satyedra pal
|
1 4,437 |
 |
Spring Framework Features
Spring is a layered Java/J2EE application framework, based on code published in Expert One-on-One J2EE Design and Development by Rod Johnson (Wrox, 2002).
Spring includes:
- The most complete lightweight container, providing centralized, automated configuration...
By Sanskruti
Last Message By mvairavan
|
1 6,956 |
 |
People generally have doubt that when we use Hibernate we simply use configuration to create SessionFactory(). Using that we create session for JDBC connection. But all these SessionFactory and Session class are interfaces. But there is no class available with this name which implements methods of...
By abhishekshahi
Last Message By shabbir
|
1 7,122 |
 |
So far
Java Event Handling (Part-1)
Java Event Handling (Part-2)
In this article I will discuss about the events generated by entering input through keyboard and when characters are entered in text fields and text areas.
The KeyEvent Class
A KeyEvent is generated when keyboard input...
By techgeek.in
Last Message By shabbir
|
1 3,869 |
 |
Java, has become now undoubtedly the fuel of the development of the Software System Technology.Developers, now thus take the challenge to prove the feelings of Java as the best positive catalyst of their development life's reactions.They feel the Class, as the ultimate classic sense of the...
By Tango Issac Debian
|
0 2,271 |
 |
Java has a class called File, which actually represents not a file you can read or write, but rather a filename. Using this class is highly recommended instead of simple strings, because it makes your file naming operating-system independent. You can easily find out wether a filename is relative or...
By pradeep
|
0 3,731 |
 |
Introduction
A pattern of special characters is used to specify the format of the date. The example below demonstrates some of the characters. For a complete listing, see the javadoc documentation for the SimpleDateFormat class.
Note: This example formats dates using the default locale...
By pradeep
|
0 18,273 |
 |
Introduction
Handling character strings in Java is supported through two final classes: String and StringBuffer. The String class implements immutable character strings, which are read-only once the string has been created and initialized, whereas the StringBuffer class implements dynamic...
By S k
|
0 6,052 |
 |
What Is GlassFish?
Depending on how you look at it, GlassFish is any of the following:
A community. The GlassFish community currently includes over 1100 members participating in the GlassFish project, with the objective of developing an open source application server that implements Java EE...
By S k
|
0 3,570 |
 |
Drawing Lines
The drawLine method belongs to the Graphics class.
This example draws a fan of twenty lines from the bottom center of the Applet along the top edge. The applet's getSize method is used to find the dimensions of the applet.
import java.awt.*;
import java.applet.*;
public...
By Andrew
|
0 9,258 |
 |
The classical input/output (I/O) library in Java contains classes that support I/O handling of streams with compressed data. You can easily compress and decompress any text or binary data to or from any I/O stream using either a file or any other stream (e.g., a servlet output stream). In this...
By Mary
|
0 4,937 |
 |
The JavaMail API (http://java.sun.com/products/javamail/) is a messaging framework intended to build platform-independent applications that use e-mail messaging. It is included in the J2EE platform and is available as an optional package in J2SE. The API's main purpose is not for transporting,...
By Mary
|
0 29,358 |
 |
Earlier in client- server computing, each application had its own client program and it worked as a user interface and need to be installed on each user's personal computer. In web applications we mostly use HTML/XHTML which is mostly supported by all the browsers and web page is displayed to the...
By Sanskruti
|
0 3,182 |
 |
Just like the multiple catch blocks, we can also have multiple try blocks. These try blocks may be written independently or we can nest the try blocks within each other, i.e., keep one try-catch block within another try-block. The program structure for nested try statement is:
try
{
//...
By Sanskruti
|
0 12,572 |
 |
Introduction
JavaServer Faces solves many of the historical problems of Java Web development by providing a clean implementation of the Model-View-Controller design pattern while providing a productive, component-centric development without sacrificing development power and flexibility....
By Sanskruti
|
0 4,016 |
 |
A thread can be created in Java programs in two ways – by extending Thread class and by implementing Runnable interface. In case, where the class extends a Tread class, it must override run() method of the Thread class. The program may override the other methods also. If the program uses Runnable...
By Sanskruti
|
0 23,019 |
 |
Struts is a free open-source framework for creating Java web applications.
Web applications differ from conventional websites in that web applications can create a dynamic response. Many websites deliver only static pages. A web application can interact with databases and business logic engines...
By Sanskruti
|
0 3,429 |
 |
By msi_333
|
- - |
 |
The problem occurred when i was developing this app was that the connection of the phone with the computer. For this connection to work over the Wifi network the user must enter the correct IP address of the phone/computer. It's a bit of a downfall when it comes to the users side since there can be...
By ManzZup
|
0 1,565 |