Recent Posts
Apache Camel File_Copy
Create a Java Project
1. POM File Put this into the Pom File
<dependencies> <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-core --> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> <version>3.15.0</version> </dependency> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.1</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId> <version>2.3.0.1</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.3.2</version> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.7.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.7.2</version> <scope>test</scope> </dependency> <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.9.8</version> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</version> </plugin> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.2</version> </plugin> </plugins> </build> 2.
read more
UML Artifacts for the Java Developer
The Gurus for this field are: Scot Abmler Martin Fowler Robert Martin
Useful resources: https://agilemodeling.com/ https://agilemodeling.com/essays/modelingtechniques.htm https://agilemodeling.com/artifacts/ https://agilemodeling.com/style/ Relationships Inheritance, Composition, Aggregation https://agilemodeling.com/artifacts/classdiagram.htm https://agilemodeling.com/style/classdiagram.htm https://agilemodeling.com/artifacts/sequencediagram.htm https://agilemodeling.com/style/sequencediagram.htm https://agilemodeling.com/style/statechartdiagram.htm https://agilemodeling.com/artifacts/usecasediagram.htm https://agilemodeling.com/style/usecasediagram.htm \
Other resources https://www.ibm.com/docs/en/dma?topic=diagrams-artifacts https://www.uml-diagrams.org/artifact.html \
read more
Java Coding Challange
Write Program in Java to create threads using the Runnable interface public class RunnableInterface implements Runnable { //Declaring a count variable private int count; //run() method this method tells what the thread will do public void run() { for (int i = 1; i <= 5; i++) { System.out.println("Ninja " + count + " count: " + i); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } } //Setter for count variable public void setCount(int count) { this.
read more