Skip to content

Instantly share code, notes, and snippets.

View JosePaumard's full-sized avatar

José Paumard JosePaumard

View GitHub Profile
package org.paumard.movies.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
package org.paumard.movies.model;
import java.util.Set;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name="movies")
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<movies>
<movie id="3301">
<title>Deuces Wild</title>
<release-year>2002</release-year>
<actors>
<actor id="59716">
<first-name>Angela</first-name>
<last-name>DiLiberto</last-name>
</actor>
package org.paumard.combination;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Combination {