Blog Lists

Blog

Graph Implementation

Graph data structure is import. One main application is social media, like twitter and facebook. Twitter uses undirected graph, while facebook using Directed graph.

Read More

Contain Duplicate

LeetCode, check if an array contains duplicated value in it. Apply Java Set feature to solve it.

Read More

Remove Duplicated from Sorted Array

1. Problem Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory. 2. Examples 3. Solution Two possible solutions, I think I can solve this problem. #1. Use Java built-in […]

Read More

Collections & Arrays Class in Java SE

Java Utils Class, Arrays and Collections, including the commonly used methods.

Read More

What are the core technologies you have to know about Java EE?

1. Introduction As stated on the website of Java EE, it is designed to help developers create large-scale, multitierred, scalable, reliable, and secure network application. To be a Java EE developer, you have to know Java SE first. Once you move to the Java Enterprise Edition, you will have lots of things to learn. 2. […]

Read More

Game Simulation

How to play dice game? Try this challenging, you will learn a lot of using ArrayList and Loop.

Read More

Why SSH in Java Project Architecture?

In Java, SSH represents Struts, Spring, and Hibernate. Struts resides in View and Controller layer (M-V-C), controls the display and dispatches the tasks. (View: Jsp, HTTP, Form, Tag, Resource; Controller: ActionServlet, struts-config.xml, and Action). Hibernate: persistence layer framework, is a relational mapping tool in Java programming language. Spring: a business logic layer framework. 1. Traditional […]

Read More

Binary Search Tree (BST)

A BST is a rooted binary tree, whose internal nodes each store a key, and each have two distinguished subtrees, commonly denoted left and right.

Read More

Java Collections & Java Arrays Methods

Java offers two types of constructs where you can store multiple values or objects of the same type: Arrays and Collections. This article has the diagram of the main functions.

Read More

Binary search – locate target fast in O(logn)

Binary search is an efficient algorithm for finding an item from a sorted list of items. Here you will find several morphs with the source code.

Read More