Solved

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

Posted on 1997-08-30
1
354 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why can't I create any project with my delphi EXE file? 6 39
Tidtcpserver listening on multiports? 1 35
Delphi problems to abort a printjob 9 25
MS Access from Delphi 31 61
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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 the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

830 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