Java Wiki
Edit Page
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 32: Line 32:
   
 
==== Set Example ====
 
==== Set Example ====
 
<code>
   
 
package wikia;
   
 
import java.util.HashSet;
 
<code>package wikia; </code>
 
 
<code>import java.util.HashSet;
 
 
import java.util.Iterator;
 
import java.util.Iterator;
import java.util.Set; </code>
+
import java.util.Set;
   
<code>public class SetExample
+
public class SetExample
  +
{
{ </code>
 
  +
<code> /** Creates a new instance of SetExample */
+
/** Creates a new instance of SetExample */
 
public SetExample()
 
public SetExample()
 
{
 
{
Line 94: Line 94:
 
}
 
}
 
 
  +
}
</code>
 
  +
<code>} </code>
 
 
</code>
  +
   
 
==== List Example ====
 
==== List Example ====
Please note that all contributions to the Java Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)