String « Set « Java Collection Q&A

Home
Java Collection Q&A
1.algorithm
2.array
3.Array Byte
4.Array Char
5.Array Convert
6.Array Dimension
7.Array Integer
8.Array Object
9.Array String
10.ArrayList
11.collection
12.comparator
13.Development
14.Garbage Collection
15.Generic
16.hash
17.HashMap
18.HashTable
19.iterator
20.LinkedList
21.List
22.Map
23.queue
24.Set
25.Sort
26.tree
Java Collection Q&A » Set » String 

1. Text file into Java Set using Commons or Guava    stackoverflow.com

I would like to load each line in a file into HashSet collection. Is there a simple way to do this?

2. intersection of two strings using Java HashSet    stackoverflow.com

I am trying to learn Java by doing some assignments from a Stanford class and am having trouble answering this question.

boolean stringIntersect(String a, String b, int len): Given ...

5. Help with TreeSet and finding longest string    java-forums.org

Well due to sickness I missed a week of college which means I missed out on a lecture Im using something called TreeSet which seems to group things. Anywho I need to get the longest name in a list of names. Here is my code: Code: import java.util.*; /** demonstrates Set and SortedSet via a list of names */ public class ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.