• Post Reply Bookmark Topic Watch Topic
  • New Topic

Array and ArrayLists  RSS feed

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have this declaration
int[] tempArray = {1,3,5,7,9,11,13,15,17};
int[] otherArray, extraArray[];
ArrayList tempList = new ArrayList();
and ArrayList has integer values in it so i am trying to make extraArray the exact size of tempList.
 
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I recommend reviewing Creating and Using Arrays if you haven't already.
[ October 17, 2005: Message edited by: Ken Blair ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!