You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							26 lines
						
					
					
						
							437 B
						
					
					
				
			
		
		
	
	
							26 lines
						
					
					
						
							437 B
						
					
					
				package com.platform.test;
 | 
						|
 | 
						|
import java.util.HashSet;
 | 
						|
import java.util.Set;
 | 
						|
 | 
						|
import org.junit.Test;
 | 
						|
 | 
						|
public class SetTest {
 | 
						|
	
 | 
						|
	@Test
 | 
						|
	public void testSet() {
 | 
						|
		Set<String> set = new HashSet<String>();
 | 
						|
		set.add("a");
 | 
						|
		set.add("a");
 | 
						|
		set.add("b");
 | 
						|
		set.add("c");
 | 
						|
		System.out.println(set.size());
 | 
						|
		set.remove("c");
 | 
						|
		System.out.println(set.size());
 | 
						|
		set.remove("a");
 | 
						|
		System.out.println(set.size());
 | 
						|
 | 
						|
	}
 | 
						|
 | 
						|
}
 |