Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 522 results for
hashset
- Page 1
HashSet
Programming
Software Development
12 Years Ago
by krishnisilva
hi how to i create a a local
HashSet
<video> and an InventorySet
Hashset duplicate value
Programming
Software Development
10 Years Ago
by anand01
…1); testBean.setId(100);
HashSet
<TestBean>
hashSet
= new
HashSet
<TestBean>();
hashSet
.add(testBean); testBean = new…); testBean.setId(100);
HashSet
<TestBean>
hashSet
= new
HashSet
<TestBean>();
hashSet
.add(testBean); testBean.setId…
HashSet contains duplicate elements?
Programming
Software Development
12 Years Ago
by Bladtman242
…; import java.util.TreeSet; import java.util.
HashSet
; public class ConstructTrieData { private static final String…edges. Set<Road> uniqueRoads = new
HashSet
<Road>(); //read the file Scanner sc…writeC(File nodeF, File outF, Map<String,
HashSet
<Road>> zipBList) { System.out.…
HashSet Problem
Programming
Software Development
12 Years Ago
by anand01
[CODE] Set<Integer> set = new
HashSet
<Integer>(); Integer i1 = 45; Integer i2 = 46; set.…
Re: How does HashSet compare between its values?
Programming
Software Development
14 Years Ago
by masijade
HashSet
uses hashCode and equals as already stated. Also, as already stated, test the hashCode and equals outputs of Path, and ensure that you are getting what you expect, and ensure that the problem does not lie there.
Re: HashSet
Programming
Software Development
12 Years Ago
by cms271828
Whats video? I don't get it
Re: HashSet
Programming
Software Development
12 Years Ago
by krishnisilva
[QUOTE=cms271828;1741862]Whats video? I don't get it[/QUOTE] it is public interface Video extends Comparable<Video> {}
Re: HashSet
Programming
Software Development
12 Years Ago
by krishnisilva
[QUOTE=krishnisilva;1741882]it is public interface Video extends Comparable<Video> {}[/QUOTE] and inventory set is final class InventorySet implements Inventory {} videoObj implements Video final class VideoObj implements Video {}
How to intersect using hashset..
Programming
Software Development
13 Years Ago
by Kath_Fish
… need some help from you guys.. Now, my first
hashset
include the number in string 2 1 3 4 5… my second
hashset
include the number in string (in line) 1 2…..........(many lines) how to intersect this two
hashset
? [CODE]
HashSet
<string>hs1 = new
HashSet
<string>(); var g = from …
Re: How to intersect using hashset..
Programming
Software Development
13 Years Ago
by Kath_Fish
… got improvement already but still face a bit problems. My
hashset
, hs1 is store the data 2 1 3 4 5… 2 4 2 5 3 4 then i store to
hashset
, hs2 after i split the data. Now i do the…;\r\n"); myArray.Add(et.Key.ToString()); }
HashSet
<string> hs2 = new
HashSet
<string>(); for (int i = 0…
Configuring a HashSet to Accept Only Distinct Objects of a Custom Class
Programming
Software Development
12 Years Ago
by freedomflyer
… char that is stored within a State. However, the
HashSet
does not know that. Can we please discuss a clear… explanation of: [LIST=1] [*]The default behavior of a
HashSet
to ensure that the Set implementation functions [*]How to change… up my State class so that the
HashSet
knows on which value to check to ensure distinctness [/LIST…
Re: How to intersect using hashset..
Programming
Software Development
13 Years Ago
by Kath_Fish
… can help me to solve this problem..??? [CODE]
HashSet
<string> hs2 = new
HashSet
<string>(); for (int i = 0…
private static HashSet values changing with each instance
Programming
Software Development
16 Years Ago
by treecarver
…last inserted objects. I thought a static declared
Hashset
is only created once so any objects added … stay there [CODE]package dao; import java.util.
HashSet
; import java.util.Iterator; import java.util.Set;…{ private static Set<Category> categories = new
HashSet
<Category>(); // setter for products public void store…
Re: How to intersect using hashset..
Programming
Software Development
13 Years Ago
by Kath_Fish
How i turn the second
hashset
to vertical and intersect with the firstset one line by one line..This is the problem what i face now...
Re: Configuring a HashSet to Accept Only Distinct Objects of a Custom Class
Programming
Software Development
12 Years Ago
by freedomflyer
… look at the API first - but I only looked at
HashSet
, and didn't think to look at Set. That will… honest - I don't much care if it's a
HashSet
or a TreeSet or any type of set - I just…
Re: Configuring a HashSet to Accept Only Distinct Objects of a Custom Class
Programming
Software Development
12 Years Ago
by JamesCherrill
The API doc for
HashSet
shows it to be a subclass of Set, and the …
Re: private static HashSet values changing with each instance
Programming
Software Development
16 Years Ago
by ~s.o.s~
… the same copy of the variable. If you want your '
HashSet
' to be 'free from changes', make it [B]final[/B…]. Also keep in mind that the
Hashset
doesn't allow duplicates, if thats what you are looking…
Re: How does HashSet compare between its values?
Programming
Software Development
14 Years Ago
by neti1987
…] and the next code print nothing...: [CODE]
HashSet
<WatchedPath> xx = new
HashSet
<WatchedPath>();xx.add(wp); // wp is…(wp.dir))) System.out.println("EQUALS!!!");
HashSet
<WatchedPath> xx = new
HashSet
<WatchedPath>(); xx.add(wp); // wp…
Re: How does HashSet compare between its values?
Programming
Software Development
14 Years Ago
by neti1987
[QUOTE=masijade;1187732]
HashSet
uses hashCode and equals as already stated.….Path; import java.nio.file.Paths; import java.util.
HashSet
; public class WatchedPath { public Path dir; public boolean recursive…WatchedPath wp = new WatchedPath(p, true);
HashSet
<WatchedPath> xx = new
HashSet
<WatchedPath>(); xx.add(wp); …
Re: private static HashSet values changing with each instance
Programming
Software Development
16 Years Ago
by jwenting
of course always remember that final only refers to the reference to an object, not the content of that object. So if you make if final you can't assign a new
HashSet
to it but you can still change what's stored in it.
How to generate random images from access database using hashset?
Programming
Software Development
14 Years Ago
by liqin
… the way, i am very new to the concept of
hashset
. [CODE]Private Function GetImageFromByteArray(ByVal picData As Byte()) As Image… Integer count = command.ExecuteScalar() oledbconnection.Close() Dim randomImage As New
HashSet
(Of Integer) ' Create a integer and new Random object Dim…
How does HashSet compare between its values?
Programming
Software Development
14 Years Ago
by neti1987
Hi! I try to create
HashSet
of the next object: [CODE] import java.nio.file.Path; … example, the next code will print nothing: [CODE]
HashSet
<WatchedPath> xx = new
HashSet
<WatchedPath>(); xx.add(wp); // wp…
Re: How does HashSet compare between its values?
Programming
Software Development
14 Years Ago
by vchandra
[QUOTE=neti1987;1187613]Hi! I try to create
HashSet
of the next object: [CODE] import java.nio.file.Path; … example, the next code will print nothing: [CODE]
HashSet
<WatchedPath> xx = new
HashSet
<WatchedPath>(); xx.add(wp); // wp…
problems with HashSet
Programming
Software Development
18 Years Ago
by Dark Master
… and looking at the replies it seemed to me that
hashset
will be a better option than arraylist.problem is that… in order of their insertion, but the books say that
hashset
does not guarantee this.actually i m building a simple…
Re: How does HashSet compare between its values?
Programming
Software Development
14 Years Ago
by stephen84s
… of hash-based collection classes -- such as Hashtable, HashMap, and
HashSet
-- in typical Java applications, and comparing against many objects with…
help with HashSet variable
Programming
Software Development
13 Years Ago
by ttboy04
… trying to display both duplicates (thats where I have used
HashSet
) and display unique names. Thanks in advance for your help…(); } public static void bMethod() { Set<String> names = new
HashSet
<String>(); for (String a : anagramTable) { if (!names.add…
how to convert the hashset back to array..
Programming
Software Development
13 Years Ago
by Kath_Fish
… output in the array. Now, my output is in
hashset
. i need to convert back to array. my output … ')) { //ItemKey.AppendText(t); hs3.Add(t); } var clone = new
HashSet
<string>(hs2); hs2.IntersectWith(hs3); foreach (string y…
Re: how to convert the hashset back to array..
Programming
Software Development
13 Years Ago
by Kath_Fish
…().Split(' ')) { //ItemKey.AppendText(t); hs3.Add(t); } var clone = new
HashSet
<string>(hs2); hs2.IntersectWith(hs3); strarry = hs2.ToArray…
Bluej help with Java, how can I make HashSet or ArrayList?
Programming
Software Development
14 Years Ago
by 9w43
…, name and course, how can I make an ArrayList or
HashSet
on trip class which needs to store those students. If…
Re: Bluej help with Java, how can I make HashSet or ArrayList?
Programming
Software Development
14 Years Ago
by peter_budo
BlueJ is just a tool and doesn't provide different/unusual/strange/special Java code, so no point mentioning it. As for
HashSet
you can read this [URL="http://java.sun.com/docs/books/tutorial/collections/interfaces/set.html"]tutorial[/URL]
1
2
3
9
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC