Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML


 
  
 
Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML
 

 
Facing Programming Problem?
Ask Questions?, Browse Latest Questions, Question-Answer Guidelines
Java
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments

Example Using put() method

                         

 

In this example you will learn that how a put function is used in the program, in this example first time when it initialize it don't have any value but when we give some of the value in it by put() function then it will show the value what it have in its container.

 

 

 

 

 

 

 

Here is the Complete Code of the Example :

import java.util.prefs.Preferences;

public class put 
  {
  public static void main(String[] args
    {

   
    Preferences prefs = Preferences.userNodeForPackage(put.class);

   
    String x = prefs.get("one"" ");

  System.out.println(x);
  
    prefs.put("one""roseindia");

    }

     }

After thoroughly knowing the code you should save the file by "put.java" file name and when after compiling the code you run your program you will get the output given below .

Here is the Output of the Example :


C:\anshu>javac put.java

C:\anshu>java put
roseindia

Downoload this example.

                         

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Latest Searches:
servlet examples
example of one dimensi
Combattons la programm
how to create piechart
Constructor Inheritanc
linked list and GUI
java program to transp
code to add to cart an
CSS min-height Interne
servlets mysql
compare two arraylist
ComboBox in java
how to pass same varia
sOA
Difference between Ser
switch case
java scanner
how to save the passwo
how to configure msacc
unicode
get and set methods in
self-avoiding random w
insertion sort by usin
scanner method
dojo dialog for onCanc
retrieve file from a d
export database data i
swing concept
Unicast AND multicast
call stored procedure
php
setvisible tab
accessing database usi
Ñ?â??е????Ñ?â??е???Ñ
timestamp
JTable Renderer to be
annotation in java
disable minimize butto
HtmlSelectManyMenu
delete data where fiel
static
webservice
How to handle JSP Erro
ั?à¹???ะà¸?ะà¸?à
java for loops
login form using mysql
Insert Data into Datab
<c:if
Java Interview Questio
extract
public void actionPerf
decimals
login page jasp
goto
Photoshop Drawing 3D P
Unicast object
El functions
ejp
PHP User Authenticatio
frost snow photoshop
error-Unknown entity:
Photoshop Basics 3D Ba
what is factory design
reading and writing ex
hql date
how to cerate hbm.xml
Combattons la programm
websphere
awt events
internal frames
breakаÐ?????аÐ????а
string to integer
carters as a pimp
triggers in sql
Scanner
mxml
breakÑ?Ð?Ð??Ñ?Ð????Ñ?Ð
IgnoreCase() in java
uml classes
Tree max
Java String toLowerCase Example
Java String toCharArray Example
Java String substring Example
Java String indexOf Example
Java String startsWith Example
Java String hashCode Example
Java String matches Example
Java String length Example
Java String lastIndexOf Example
Java String isEmpty Example
Java String equalsIgnoreCase Example
Java String equals Example
Java String endsWith Example
Java String copyValueOf Example
Java String contentEquals Example
  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Java Training Delhi | Java Training at Noida |

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

Copyright © 2008. All rights reserved.