Scroll to top

Code Base

Posted by JBT
June 26, 2020

How to use optional in java 8 streams

In this article we will learn how to use optional in java 8 streams. Optional...

Read More
Posted by JBT
April 16, 2016

Java Date format

Here i will provide list of Java Date formats that are used in Java frequently....

Read More
Posted by JBT
February 13, 2016

Generate random number in java

Here you will learn to generate random number in java between two given number by different means. I will try to provide cons for different mechanism so that you can choose what is best for you.

Read More
Posted by JBT
January 9, 2016

Java write to file

There are n number of ways to achieve this.

Read More
Posted by JBT
November 1, 2015

Java String Split

In java you might face a situation where you need to split String, based on some criteria. To fulfill this requirement Java has already provided two in-built methods to achieve this.

Read More
Posted by JBT
September 15, 2014

Calculate difference between two dates in java

In this topic we will learn how to calculate difference between two dates in java in terms of Second/ Minutes / Hours / Days. By Using java class. In next section we will use Java api(JODA) to perform the same activity.

Read More
Posted by JBT
March 19, 2013

Create web application in eclipse using Servlets and JSP

Here we will learn to create web application in Eclipse using Servlets and JSP.

Read More
Posted by JBT
October 28, 2012

How to Create Table in Oracle Using statement in Java

import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.util.Scanner; /* * Here we will...

Read More
Posted by JBT
October 28, 2012

How to connect to oracle database in java using eclipse

Here we will learn to connect to MYSQL DB via Java.

Read More
Posted by JBT
October 28, 2012

How to connect to mysql database in java

Here we will learn to connect to MYSQL DB via Java. import java.sql.Connection; import java.sql.DriverManager;...

Read More