What Sort of Listener Are You? If we tried to implement a full graphical interface in a program by using MouseListener, we’d have a lot of work to do. We’d have to draw all the buttons using drawing instructions in …
An inner class is a Java class that’s defined inside another class. In both the examples above, I have a class called VGKernel, which is the class that implements the video game kernel. Inside that class, I define other classes. …
CodeSpells, an immersive, first-person player video game designed to teach students in elementary to high school how to program in the popular Java language, has been developed by University of California, San Diego computer scientists. In simple video games, there is usually some …
Java JSON Processing API is not very user-friendly and doesn’t provide features for automatic transformation from JSON to Java object and vice versa. Luckily we have some alternative APIs that we can use for JSON processing. In the last article, we …
Hibernate is an open source object/relational mapping tool for Java. Hibernate lets you develop persistent classes following common Java idiom – including association, inheritance, polymorphism, composition and the Java collections framework. Hibernate not only takes care of the mapping from …
You can remove duplicates or repeated elements from ArrayList in Java by converting ArrayList into HashSet in Java. but before doing that just keep in mind that Set doesn’t preserver insertion order which is guaranteed by List, in fact that’s the main difference between List and …
Building Apache Tomcat from source is very easy, and is the first step to contributing to Tomcat. The complete and comprehensive instructions are provided in the file BUILDING.txt. The following is a quick step by step guide. 1.Install Java. Building Apache …
Hibernate is an object/relational mapping tool for Java environments. What does it mean the term object/relational mapping? simply a technique of mapping a data representation from an object model to a relational data model with a SQL-based schema. Hibernate Installation/Setup on …
Top 10 Mistakes Java Developers Make 1. Convert Array to ArrayList To convert an array to an ArrayList, developers often do this: List<String> list = Arrays.asList(arr); Arrays.asList() will return an ArrayList which is a private static class inside Arrays, it …
You can program in Java. That’s great! But what else can you do with those skills? Are you trapped with Java? Not at all. Here are some other languages, and a brief look at what your Java programming skills will …