Spring Web App Banking Example

This article shows how to quickly build a web application using the Spring Tools Suite. For this tutorial, I use Spring Tools 4 for Eclipse, where I initialize projects using Eclipse wizards. Spring Boot Web Application Spring has a lot of components, and SpringBoot is a convention over configuration approach Read more…

Mergesort

Mergesort Mergesort is an efficient and widely used sorting algorithm. Stable sorting algorithm: preserves the order optimal time complexity: N log N in all cases suboptimal in space usage: usage of an extra array for merging Usage examples: Sorting Linked Lists when space is not a concern. Java default algorithm Read more…

Java Array Exercises

This article contains a series of exercises on java arrays, including resizing array implementation, merging sorted arrays, etc.. Resizing-array implementation A Java ArrayList is a resizable-array implementation of the List interface providing amortized-time for insertion of O(1). Exercise: implement a ResizingArray class providing O(1) amortized-time for insertion. Growing the array Read more…

EMF Modeling and Code Generation

This article shows how to quickly build an EMF model using the Ecore Tools UML editor and generate the Java source code. For this article I am using eclipse eclipse-modeling-tools-2019-06. Modeling Motivations Main motivations for modeling and code generation: separation of application logic w.r.t. implementation: your independent model can be Read more…