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.

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>.

much thanks!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.