• Post Reply Bookmark Topic Watch Topic
  • New Topic

simple, but it does not work.  RSS feed

 
Khushboo Singh Rathore
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
error:
cannot find symbol
symbol: class ArrayListCollection
location: class ArrayL
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We cannot understand what the problem is. Be more specific and give more details.
 
Khushboo Singh Rathore
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to know where im wrong
 
Khushboo Singh Rathore
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry,, heres the code:

import java.util.*;

public class ArrayL
{
public void Numberinglist(ArrayListCollection<Integer> list)
{
list.add(1);
list.add(2);
}

public static void main(String[] args)
{
ArrayListCollection<Integer> list = new ArrayListCollection<Integer>();
ArrayL l = new ArrayL();
l.Numberinglist(list);
}
}
 
Khushboo Singh Rathore
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
error:

cannot find symbol
symbol: class ArrayListCollection
location: class ArrayL
 
Khushboo Singh Rathore
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anybody?
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such class in the standard Java API called ArrayListCollection. Did you write your own class which is called this?

I suspect you mean ArrayList or Collection.
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ks Sr wrote:error:
cannot find symbol
symbol: class ArrayListCollection
location: class ArrayL

I think the message is pretty explicit. What's an ArrayListCollection?

Winston

PS: In future, please post the message EXACTLY as you received it (it will almost certainly have included a line number). Just copy and paste it.
 
Khushboo Singh Rathore
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@James - thanks!! its ArrayList.. its working
Thankyou so much!
 
Khushboo Singh Rathore
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ winston - my mistake. Will post in detail from now on
Apparently, i was usng wrong class, its ArrayList.

Regards & thanks,
KS
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!