Java

Java TextFields, keyTyped Vs insertUpdate Events

It's been a while since I last posted, I have been spending a lot of my spare time on a java application where I came across a problem with the keyTyped() Event.

The task I was trying to achieve was to reproduce a similar feature to google suggest which was fairly straight forward simply using a Collection to store all my values and the Iterator to loop through each value checking against my search string which was retrieved using the getText() method and then matched against each value using the startsWith() method.

Installing and Programming with PHP and Java

As a web developer PHP has always been top of my list when it comes to programming but just recently with my studies Java has been my main language and as I have come to love Java I looked into ways of using both PHP and Java together.

While searching the internet I found a few different solutions to this, you are able to recompile PHP with java support on both windows and Linux but the easiest solution I found for the windows operating system was Java Bridge, combined with WAMP (Windows Apache MySql and PHP) I was already to go in a matter of minutes.

Overloading Methods and Constructors | Java

What is overloading?

Overloading is the term used when more than one method exists with the same name. It does not matter if the methods exist in the same class, or if one or both methods exist in the parent or child classes.

The compiler differentiates between the two methods using the methods parameters, specifically the order and the data types of the parameters. Therefore you could have two methods with the same name and two parameters as long as the data types were different or the same data types but in a different order.