• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
Clean Programmer

Clean Programmer

Programming & DevOps Resources

  • Home
  • Library
  • About
  • Contact

Java

Adding 3rd Party Jar to a Maven Project

November 2, 2018 Monzurul Haque Shimul

Many Java applications have dependencies that aren’t available in a public or private Maven repository. Sometimes you may have just a third party java library, packaged as a jar, that you need to integrate in your application. This is very common when you have Oracle as your database and you need to connect to the db using the ojdbc.jar which is not available in maven central repository. You need to download it from Oracle website and then need to integrate it in the maven project as a third party dependency.

In this post, I will show how to add a third party client jar to a maven project. 

Read More about Adding 3rd Party Jar to a Maven Project

Java Java EE java maven

Practicing Java: Simple String Encoding and Decoding

October 24, 2018 Monzurul Haque Shimul

In this post, I will demonstrate a simple java program, I recently faced, to encode a string to a specific requirement and later I will also show how to decode it back. Lets have a look at the requirement. You need to encode a string having the consecutive repetitive characters with the character itself followed… Read More

Java java

Generating Prime Number Sequence Using Java Stream API

October 20, 2018 Monzurul Haque Shimul

A prime number (or a prime) is a natural number greater than 1 that cannot be formed by multiplying two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways of writing it as a product, 1 × 5 or 5 × 1, involve 5 itself. However, 6 is composite because it is the product of two numbers (2 × 3) that are both smaller than 6. The property of being prime is called primality. A simple method of checking the primality of a given number n, called trial division, tests whether n is a multiple of any integer between 2 and square root of n.

In this post, I will demonstrate how to check primality of a number and then generate a sequence of prime numbers using Java Stream API based on two different criteria.

Read More about Generating Prime Number Sequence Using Java Stream API

Java java stream

Generating Fibonacci sequence using Java Stream API

October 18, 2018 Monzurul Haque Shimul

The Fibonacci numbers are the numbers in an integer sequence, called the Fibonacci sequence, and characterized by the fact that every number after the first two is the sum of the two preceding ones. In this article I am going to show, how to generate fibonacci sequence using Java Stream API and later will discuss about the implementation.

Read More about Generating Fibonacci sequence using Java Stream API

Java java stream api

Calculate factorial number using Java Stream API

October 13, 2018 Monzurul Haque Shimul

Factorial of a non-negative integer n is multiplication of all integers smaller than or equal to n. In this article, we’re going to see how we can calculate factorial by using Java Stream API.

Read More about Calculate factorial number using Java Stream API

Java java stream api

  • Page 1
  • Page 2
  • Next Page »

Primary Sidebar

Categories

  • Apache Kafka
  • Druid
  • Git
  • Java
  • Java EE
  • Redis
  • Spring
  • Uncategorized
  • Weblogic
  • Wildfly

Featured Posts

Deploy applications to a remote WildFly server using jboss-cli

SDKMAN! Managing SDKs Were Never So Smart

How to setup Zookeeper Cluster

Customizing the wsdl url for ejb web services for JBoss Wildfly and Oracle Weblogic servers

Loading data into Druid from CSV file

Tags

bash bitbucket cassandra cloudserver curl docker druid.io eclipselink ejb git imply.io java java-ee jaxws jboss jboss-cli jdbc jdk jms kafka maven minio mssql mysql ojdbc oracle postgresql redis rest rest-template S3 scality sdk sdkman soap spring sqlserver stream stream api weblogic web services wildfly wsdl zenko zookeeper

Archives

  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018

Copyright © 2019 · CLEAN PROGRAMMER

  • Privacy Policy
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OKNoRead more
Revoke Cookies