0
String[] names = new String[namesListSet.size()];		
		
int[] nums = new int[namestimesSet.size()];
			
		
namesListSet.toArray(names);
		
[B]namestimesSet.toArray(nums);[/B]
		
for (String s : names) {
            
System.out.print(s);
      
}

i'm getting an error on the bold part. getting symbol not found.

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by plasticfood
0

Seemingly it would have to be an Integer array, not an int array, although it would probably help to know exactly what "namestimesSet" is, I'm assuming a Set<Integer>.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.