Tuan Development Notes Sharing and learning

clean maven project 0

Clean Maven project

When to clean maven project? Clean Maven project when you need to delete the target folder. How to do it? Assumed that you have created a Maven project and already used the package command line. To clean...

create maven project 0

Build Maven project

How to build Maven project Assumed that my pom.xml is like this <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>com.tuanhm.devnotes</groupId> <artifactId>mvnsample</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>mvnsample</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project> To...

java switch case 0

Java switch case

Usage, syntax and example for Java switch case Usage Beside if-else, we can use Java switch case for making decision. Syntax switch (KEY) { case VALUE: break; default: break; } Example 1 int input =...