Below is an example to show in a simple way how to we can use reflection to call methods. First, … More
Tag: java
[Java] – Reflection : Create a object using a constructor with arguments
With reflection you can create a object using a constructor with arguments. Bellow is the code for you can check … More
[ Java ] – Create objects by reflection
Simple example for you start understand how to create an objects by reflection : public class ClassMap{ private Map<String,String> map; … More
[Java] – Understanding Reflections !!!
Use: Reflection is commonly used by programs which require the ability to examine or modify the runtime behavior of applications … More
Java : How to do a Junit test ?
Set the dependency in your pom.xml file: <!– Test –> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> <scope>test</scope> </dependency> Your JUnit’s tests will … More
How to run or not tests when I’m using maven ?
First you can configure or project for always run the tests or not . SKYPE ALWAYS To skip running the … More
Java : You can try the JDK 9
Java 9 has been scheduled for general availability in September 2016, according to aschedule proposal announced by Mark Reinhold, Chief Architect of … More
Java : Switch
Use switch Statement when you know the possible values and you want do something for each any case. Example : … More
Java 8 : How to sum Integer values with streams ?
Below follows an example that show how to get the sum total of all attributes contained in a collection. Example … More
JavaServerFaces – Example of list interaction with ui:repeat
<ui:repeat value=”#{myBean.myList}” var=”obj”> <td> <p>#{obj.value}</p> </td> </ui:repeat>