Solved

What is "Properties" class in java.util do?

Posted on 1997-08-30
1
340 Views
Last Modified: 2013-11-23
HI.
I would like to know what is "Properties" class in java.util do? I would like to see the example of code to show how to use the function in this class also.

Regard.
John.
0
Comment
Question by:paopeng
1 Comment
 
LVL 2

Accepted Solution

by:
mgk earned 0 total points
ID: 1226058
The Properties class is a hashtable for Strings, here's a really simple example:

// put values into the hashtable
Properties p=new Properties();
p.put("value1","20");
p.put("value2","40");

// get value back out
String value=p.getProperty("value1");


0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now