Home Discussion Discuss: HashSet Example

  • goodmahantesh April 9, 2011 at 3:05 PM

    eay to understand

  • javabala September 23, 2011 at 10:38 AM

    very nice example

  • Program to the interfaceKnyght October 18, 2011 at 9:01 PM

    You should always program to the interface. This is wrong: HashSet <String>collection = new HashSet <String>(); It should be this: Set <String> collection = new HashSet <String>();

  • return value of the add methodAli Harb December 13, 2011 at 1:03 PM

    The add method specifies that a boolean should be returned but in the code we do not assign "collection.add(str1)" to anything. Why is this allowed?

  • Doubt regarding the above code...Abdullah May 6, 2012 at 3:17 PM

    can any one tell after inserting blue,green,yellow etc how can i retreive only green from the hashset..???

  • Want to know the exPlation M a Hossan June 16, 2012 at 7:29 AM

    You did use very good exmple could you explain it that how the blue is printed frist if you know place. Send the answer in my email

Post your Comment



Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Related Articles
Struts Questions

example
example  example on Struts framework 

Struts Questions

example
example  example on Struts framework 

Struts Questions

example
example  i need ex on struts-hibernate-spring intergration example   Struts Spring Hibernate Integration 

JDBC Questions

Example
 

Mobile Applications Questions

nsentitydescription example
nsentitydescription example  nsentitydescription example 

Ajax Questions

Ajax example
Ajax example   Hi, Where can I find Ajax example program? Thanks   Hi, Get it at: Ajax Tutorials First Ajax Example Ajax Login Example Thanks 

Mobile Applications Questions

viewwillappear example
viewwillappear example  i need an example of viewwillappear 

Mobile Applications Questions

example code
example code  code for displaying a list from another class on a midlet 

Java Beginners

array example
array example  giving input from outside for array example 

Mobile Applications Questions

UIButtonTypeCustom Example
UIButtonTypeCustom Example  Hi, Can anyone provide me example of creating UIButton with UIButtonTypeCustom style? Thanks   Hi, Use following example code: UIButton *button = [UIButton buttonWithType 

Mobile Applications Questions

NSUserDefaults Example
NSUserDefaults Example  Hi, How to use NSUserDefaults? Can anyone share me the NSUserDefaults example code? Thanks   Hi, Please check the thread NSUserDefaults Example. Thanks 

Framework Questions

ibatis example
ibatis example  Which lib directory should we put the ibatis jar files as given in the example of ibatis 

EJB Questions

Interceptors Example
Interceptors Example  Could anyone give an example of an interceptor through its usage 

Development process Questions

structure example
structure example  in the example above what do you call the names student1,student2 and student3   Post the code 

Programming Tutorials

ajax example
Ajax Example Here is the list of few Ajax examples at RoseIndia.net. Ajax example Ajax example   Hi, Where can I find Ajax example... Example Ajax Login Example Thanks Ajax Tutorials  Collection of top 

Struts Questions

DAO Example
DAO Example  Dear Friends Could any one please give me any example of DAO application in struts? Thanks & Regards Rajesh 

Mobile Applications Questions

heightForRowAtIndexPath example
heightForRowAtIndexPath example  Hi, Give me code for heightForRowAtIndexPath example? Thanks   Hi, Please check the thread UITableView heightForRowAtIndexPath. Thanks 

HTML Questions

nofollow example
nofollow example  Hi, Provide me nofollow example code. Thanks   Hi, Please check the thread: How to add nofollow in website link? Thanks 

JSP Servlet Questions

MVC Example
MVC Example  I WANT MVC EXAMPLE PROGRAM using Jsp Servlets and Jdbc with mysql of Insert,update,delete,search. please give the answer in MVC rule 

Mobile Applications Questions

NSNotificationCenter Example
NSNotificationCenter Example  Hi, can anyone help me to understand NSNotificationCenter better ..? If possible then please provide me an example or tutorial of nsnotificationcenter in objective c. Thanks 

PHP Tutorial

fgets() example
; Example: <?php $file = fopen("upload.php", "r"...($file). "<br />"; } fclose($file); ?> In this example 

Mobile Applications Questions

UIAlertView Example
UIAlertView Example  Hi, Provide me good example of UIAlertView. What is the code of UIAlertView that I can use to display message to the user? Thanks   Hello, You can use the following code to display message 

PHP Tutorial

fgetc() example
 

Mobile Applications Questions

NSUserDefaults Example
 

Mobile Applications Questions

NSMutableDictionary Example
 

Java Beginners

loop example
 

WebSevices Questions

cxf example
 

Programming Tutorials

Example Code
Example Code       Example Code Following are the some of example code with demos :  jQuery blur event jQuery change event 

Programming Tutorials

ServletContextListener example
ServletContextListener example Before going into the details of  ServletContextListener we should understand what is ServletContext. ServletContext is a interface which helps us to communicate with the servlet container 

Programming Tutorials

Ajax Example
 

DMCA.com