Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Properties

The function of the java.util.Properties class.

Tutorial Details:

The function of the java.util.Properties class, to save and restore the properties for a program, might be easier to do using java.util.Preferences. See Preferences.

The java.util.Properties class stores and loads key/value pairs from a file, and manages them in memory. This is the class to use to implement persistent variables (values which are saved in a file).

To create and put values in a Properties table
This example creates a new Properties table and assigns a string value to four different keys.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/io/30properties_and_preferences/10properties.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Properties

View Tutorial:
Properties

Related Tutorials:

How to easily reconfigure your applications -- while they're running - JavaWorld - April 1999
How to easily reconfigure your applications -- while they're running - JavaWorld - April 1999
 
XML JavaBeans, Part 3 - JavaWorld July 1999
XML JavaBeans, Part 3 - JavaWorld July 1999
 
Java Tip 74: Build dynamically extensible frameworks - JavaWorld
Java Tip 74: Build dynamically extensible frameworks - JavaWorld
 
Problems with Swing's new XMLOutputStream class - JavaWorld August 1999
Problems with Swing's new XMLOutputStream class - JavaWorld August 1999
 
Direct network traffic of EJBs - JavaWorld November 1999
Direct network traffic of EJBs - JavaWorld November 1999
 
Create forward-compatible beans in EJB, Part 1 - JavaWorld December 1999
Create forward-compatible beans in EJB, Part 1 - JavaWorld December 1999
 
Make a sweep with clean beans - JavaWorld November 1999
Make a sweep with clean beans - JavaWorld November 1999
 
Smartly load your properties
Smartly load your properties
 
A simple sample, but interesting enough
A simple sample, but interesting enough
 
Good ideas
Good ideas
 
Flexible User and Environment Ant Configuration
Flexible User and Environment Ant Configuration The de facto standard for building, packaging, and deploying Java applications is Apache Ant. Small differences in developers\' environments or preferences may cause problems with some Ant tasks that invo
 
A Generic MVC Model in Java
A Generic MVC Model in Java Model-View-Controller (MVC) is a widely used design pattern, especially popular in graphical user interface (GUI) programming. JDK 1.5 introduces parameterized types, or generics. Combining the two allows for a generic imple
 
eva/3 Application Builder supports eclipse 3
What is eva/3 Application Builder? eva/3 Application Builder assumes responsibility for the design of forms and reports via an integrated GUI Builder, the execution of procedures and the handling of diverse relational SQL databases through JDBC int
 
Janino -- an Embedded Java Compiler
What is Janino? Janino is a compiler that reads a JavaTM expression, block, class body, source file or a set of source files, and generates JavaTM bytecode that is loaded and executed directly. Janino is not intended to be a development tool, but an embe
 
Commons Launcher
The Launcher Component is designed to be a cross platform Java application launcher.
 
Annotations in Tiger, Part 2: Custom annotations
Write your own annotations in Java 5 Part 1 of this series introduced annotations, the new metadata facility in J2SE 5.0, and focused on Tiger's basic built-in annotations. A more powerful related feature is support for writing your own annotations. In t
 
ServerEclipse - Web Eclipse Plug-in
ServerEclipse - Web Eclipse Plug-in
 
Pellet OWL Reasoner
Pellet is an open-source Java based OWL DL reasoner. It can be used in conjunction with either Jena or OWL API libraries.
 
iCal4j
iCal4j Overview iCal4j is a Java library used to read and write iCalendar data streams as defined in RFC2445. Providing both a parser and an object model, iCal4j allows you to either modify existing iCalendar data or create new data models. Validation
 
JPackIt JPackIt is a Java application for packaging a Java project into single executable package
Java Project in single jar, class or exe containing all java application resources and referenced libraries.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.