Difference Between Two String

The following JAVA PROGRAM calculates the difference between two strings provided the initial contents in both the strings remain the same.   The logic behind this program is to consider the lengths of the two strings. If the first string is having larger length, then it is divided to get the difference and same goesContinue reading “Difference Between Two String”

Log Structured Merge Trees

Log Structured Merge Trees The LSM-tree is a data structure with an attractive performance characteristic. The two structures which are used here are C0 and C1 and there is a special synchronization between the two structures. The logic of this LSM tress is used in the designing of the NoSQL Databases like HBase, SQLite4 andContinue reading “Log Structured Merge Trees”


CALCULATE DIFFERENCE BETWEEN TWO DATES This program calculates the difference between two dates. This difference which is basically in milliseconds is then converted into the number of days, hours, minutes and seconds. package samples; import java.text.SimpleDateFormat; import java.util.Date; public class DifferenceBetweenTwoDates{ public static void main(String[] args) { String dateStart = “01/14/2012 09:29:58”; String dateStop =Continue reading “CALCULATE DIFFERENCE BETWEEN TWO DATES”

Designing my first android app

ANDROID APPLICATION DEVELOPMENT FOR BEGINNERS 1) INSTALLING ANDROID SDK You will need the text editor for designing your android application. ECLIPSE IDE is recommended as I am working with it. Trust me guys, it’s very easy to use the eclipse in order to design your android apps. You can download the eclipse IDE from theContinue reading “Designing my first android app”