• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.util.array not recognised

 
apeksha agarwal
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spell it correctly.
 
apeksha agarwal
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir even after spelling it correctly its not recognizing asList function.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't tell us. Show us.
 
apeksha agarwal
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Sheriff
Pie
Posts: 20166
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes sir..
error is "method asList(String[]) is undefined for the type tagging"
 
Paul Clapham
Sheriff
Pie
Posts: 20166
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir, i am planing to use the static method from the from the arrays class..
 
Campbell Ritchie
Sheriff
Pie
Posts: 47229
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks..

well i am trying to import the util.Arrays.
but still its not recognizing asList..
 
Paul Clapham
Sheriff
Pie
Posts: 20166
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay. Let's see the import statement you have now, then.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic