This site utilizes Google Analytics, Google AdSense, as well as participates in affiliate partnerships with various companies including Amazon. Please view the privacy policy for more details.

How To Find All Assignments to a Variable in Eclipse


May 3, 2020

How To Find All Assignments to a Variable in Eclipse

If you’ve ever programmed in Eclipse, you’re probably familiar with the call hierarchy window. You know the part that lets you find all instances of a variable? When you right-click on a variable and select “Open Call Hierarchy” or simply type CTRL-ALT-H?

Java 8 Parallel Stream Performance vs Serial Stream Performance


July 23, 2018

Java 8 Parallel Stream Performance vs Serial Stream Performance

I’m almost done with grad school and graduating with my Master’s in Computer Science - just one class left on Wednesday, and that’s the final exam. Originally I had hoped to graduate last year, but things happened that delayed my graduation year (to be specific, I switched from a thesis to non-thesis curriculum). My final class is Distributed Computing, which I had a project to do. This project included a report. For my project, I compared the performance of a Java 8 parallel stream to a “normal” non-parallel (i.e. serial) stream.

Android Virtual Device Download Problems in IntelliJ


March 1, 2017

I’ve been wanting to play around making Android apps for awhile now. Though difficult, I was able to setup things using Maven and IntelliJ. Almost everything was working - I could even build an APK and install it on my phone - but when I tried to run it on my computer via an Android Virtual Device, I needed to download some components via IntelliJ. Unfortunately, I received the following error:

What does "+" mean in Java?


September 15, 2016

What does "+" mean in Java?When dealing with numbers, it adds them like you’d expect. When dealing with string, it concatenates them. That is, puts one after another into another string.

The Difference Between a JavaBean and a POJO


July 6, 2016

The Difference Between a JavaBean and a POJO

If you’ve programmed in Java for any amount of time, you’ll inevitably come across the terms bean, JavaBean, and POJO. What are they and how do they differ? Let’s start with some definitions:

Polymorphism


October 26, 2015

Polymorphism

Interesting problem / assumption I had with polymorphism recently. Take this code: