Write and read an ArrayList object to a file in Java

Today, we will get to know how to write an ArrayList object to a file and then load the object back to the Java program...

Java Swing GUI – Make a Calculator (part 2) – Handle button event with...

In the last article, we've already known how to use JFrame, JPanel and add components into your application. In this post, we'll learn how...

Java Swing GUI – Make a Calculator (part 1) – JFrame, JPanel and components

Tired of seeing your hundred lines of code just running in the console? Wanting to make something cool, a real desktop app?. If that's...

Set up a localhost and make a web page using MAMP and PHP

By the current time, MAMP had released a version for Windows. This helps Windows users have one more option set up an Apache localhost...

How to use $_GET and $_POST arrays in PHP

GET and POST are two essential methods when a web communicates with the server. These methods determine whether the web is posting data to...

Introducing querySelector and querySelectorAll

Comparing with getElementById, getElementByName,... querySelector and querySelectorAll are newcomers but soon become popular regarding their conveniences and consistent of using. How to use querySelector and querySelectorAll? With querySelector...

Working with array in JavaScript

arr1.splice(2,0, 3,4)Unlike Java, an array in JavaScript don't need to be fixed in size. You don't have to give it a length when declaring...

Overriding equals() method in Java

Comparing is something that you would do a lot in programming. It's easy in Java to compare primitive variable using double equals...

What is polymorphism in Java object oriented programming?

"The dictionary definition of polymorphism refers to a principle in biology in which an organism or species can have many different forms or stages. This principle...

getElementByID and getElementsByTagName in DOM manipulation

DOM manipulation is a skill set that every web developer must know about. With DOM manipulation, we can access the DOM and change the...