• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

simple, but it does not work.

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
error:
cannot find symbol
symbol: class ArrayListCollection
location: class ArrayL
 
Ranch Hand
Posts: 440
Hibernate Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to know where im wrong
 
Khushboo Singh Rathore
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
anybody?
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic