public class SubSets
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Set<java.lang.String> |
alreadyPrinted
Registers those that we already printed
|
protected static java.io.Writer |
out
where to write
|
| Constructor and Description |
|---|
SubSets() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Prints all subsets of items in a file of comma separated lines.
|
static void |
printSubSet(java.lang.String subset)
Prints a subset only if it has not already been printed (for a different line)
|
static void |
printSubSets(java.util.List<java.lang.String> properties,
int start,
java.lang.String collectedSoFar)
Prints all subsets of the elements in "properties" to the right of position "start", prefixed by "collectedSoFar"
|
protected static java.util.Set<java.lang.String> alreadyPrinted
protected static java.io.Writer out
public static void printSubSet(java.lang.String subset)
throws java.io.IOException
java.io.IOExceptionpublic static void printSubSets(java.util.List<java.lang.String> properties,
int start,
java.lang.String collectedSoFar)
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception