This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<String> animals = new ArrayList<>(); | |
animals.add("Dog"); | |
animals.add("Lemur"); | |
animals.add("Duck"); | |
System.out.println(animals); | |
Set<String> animals = new HashSet<>(Arrays.asList("Dog", "Lemur", "Duck")); | |
System.out.println(animals); | |
Set<String> animals = new HashSet<>(){{add("Dog"); add("Lemur"); add("Duck");}}; | |
System.out.println(animals); | |
List<String> animals = List.of("Dog", "Lemur", "Duck"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wildfly.swarm.jaxrs.rest; | |
import javax.ws.rs.client.Client; | |
import javax.ws.rs.client.ClientBuilder; | |
import javax.ws.rs.client.Invocation; | |
import javax.ws.rs.client.WebTarget; | |
import javax.ws.rs.core.MediaType; | |
import javax.ws.rs.core.Response; | |
import org.jboss.arquillian.container.test.api.Deployment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wildfly.swarm.jaxrs.rest; | |
import javax.ws.rs.client.Client; | |
import javax.ws.rs.client.ClientBuilder; | |
import javax.ws.rs.client.Invocation; | |
import javax.ws.rs.client.WebTarget; | |
import javax.ws.rs.core.MediaType; | |
import javax.ws.rs.core.Response; | |
import org.jboss.arquillian.container.test.api.Deployment; |