Problem « List « 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 » List » Problem 

1. Problem with underscore(_) in Collections.binarySearch (Java)    stackoverflow.com

Problem: I am using Java Tutorials™ sourcecode for this. This is the source code. I tried this:

--following with another section of sorted words--
words.add("count");
words.add("cvs");
words.add("dce"); 
words.add("depth");
--following with another section of ...

2. java generics problem - create a generic list when the type is of yet unknown object type    stackoverflow.com

I want to open a configuration screen and send back its data when user clicks ok. I have these objects as configurations

configObjA a;  
configObjB b;
Both implement IDisplayable (my interface). Now the ...

5. assignment problem with List    java-forums.org

Hi, I'm new to java i'm having a problem assigning a string from a string list. the code, gets a random number and chooses a sex, m/f if female tries to assign a name based on a list of girlnames otherwise a list of boynames. error: method girlNames(int) is undefined... I haven't used List before so I'm not quite sure how ...

6. From list to array... problem    forums.oracle.com

7. array <-> list problem    forums.oracle.com

As the API documentation for asList() explains, it "Returns a fixed-size list backed by the specified array." By fixed-size they mean that you cannot add values the way you are trying to do. If you want to add values to your collection of ints, is there some reason why you are using an int[] array in the first place? You create ...

8. A few problems with lists and arrays...    forums.oracle.com

9. problem with array lists    forums.oracle.com

ActionListener listener1 = new button1Listener(); button1.addActionListener(listener1); ActionListener listener2 = new button2Listener(); button2.addActionListener(listener2); } private static boolean line; private static boolean circle; private static int x1; private static int y1; private static int x; private static int q; } on the bold part the compiler gives an error saying "array required, but java.util.ArrayList found i do have a point class and it ...

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.