import
java.util.
*
;
class HashSetTest
{
public static void main(String[] args)
{
HashSet < String > hs = new HashSet < String > ();
Scanner sc = new Scanner(System.in);
String s = new String();
System.out.println( " input strings(to quit,please input quit): " );
System.out.print( ' # ' );
while ( ! (s = sc.next()).equals( " quit " ) )
hs.add(s);
for (String str : hs)
System.out.println(str);
}
}
class HashSetTest
{
public static void main(String[] args)
{
HashSet < String > hs = new HashSet < String > ();
Scanner sc = new Scanner(System.in);
String s = new String();
System.out.println( " input strings(to quit,please input quit): " );
System.out.print( ' # ' );
while ( ! (s = sc.next()).equals( " quit " ) )
hs.add(s);
for (String str : hs)
System.out.println(str);
}
}