| Author |
java.util.array not recognised
|
apeksha agarwal
Greenhorn
Joined: Oct 28, 2011
Posts: 12
|
|
hi everyone..
my problem is that during import of util.array.* in order to use asList function my system is not recognizing util.array as well as asList..
please tell me how to resolve such a problem.
thank you.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56233
|
|
|
Spell it correctly.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
apeksha agarwal
Greenhorn
Joined: Oct 28, 2011
Posts: 12
|
|
|
sir even after spelling it correctly its not recognizing asList function.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56233
|
|
|
Don't tell us. Show us.
|
 |
apeksha agarwal
Greenhorn
Joined: Oct 28, 2011
Posts: 12
|
|
sir above is my code and the bold line indicates the line in which i am having problem.
below is the process method given in which asList is used.
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
So your "tagging" class doesn't have an asList() method, and the compiler tells you so. (Correct? Post the actual compiler error message if you don't agree with that.) This has nothing to do with asList() methods that you found in some other class.
|
 |
apeksha agarwal
Greenhorn
Joined: Oct 28, 2011
Posts: 12
|
|
yes sir..
error is "method asList(String[]) is undefined for the type tagging"
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
Okay. So did you plan to write your own asList() method for that class? Or did you mean to use the static method from the Arrays class?
|
 |
apeksha agarwal
Greenhorn
Joined: Oct 28, 2011
Posts: 12
|
|
|
sir, i am planing to use the static method from the from the arrays class..
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32717
|
|
And what are you trying to import? Are you trying to import a static method? Where it says typeName, it means the full-qualified name of the class/interface.
Please use the Java™ conventions: spaces for indenting, not tabs, capital letters for class names, names do not start with _ (except package names). Since you are new, I have added code tags and you can see how much better your code looks.
What are you calling a destroy() method on?
And welcome to the Ranch
|
 |
apeksha agarwal
Greenhorn
Joined: Oct 28, 2011
Posts: 12
|
|
thanks..
well i am trying to import the util.Arrays.
but still its not recognizing asList..
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
Okay. Let's see the import statement you have now, then.
|
 |
 |
|
|
subject: java.util.array not recognised
|
|
|