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

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