Client Testimonials

This was one of the BEST hires I have ever done. Very professional, quick, and did everything I asked with a smile. I defiant recommend to EVERYONE!

- Richard – Fuzzy Threads, LLC

A very professional company, very well organised. It was a pleasure to work with them and I honestly recommend them. - Mesan Alex

I'm very pleased with your response and timely execution of requests. The ideas and logical solutions you offer to me in addition to my initial requirements has been the key to this great partnership. You grasp very quickly my needs and goals even when I don't seem to articulate them in a concise manner… and then you augment my ideas with multiple solutions. It's terrific. You guys are great!

- Bic Hauser – Skillview Sports

If you must outsource your web & software development, this is the team to hire. We had a very fruitful collaboration and we are very happy with the results. I warmly recommend Angel HS for everybody.

- Myrna Nickelsen – SolidLine Products Ltd

Marius and his team was able to turn around my project in a very short time. Would always recommend to anyone.(05/09/2013)

- Canadian Real Estate

How do I compare two strings?

A common error that we all make from time to time is incorrect String comparison. Even once you learn how to compare strings correctly, it's extremely easy to make a mistake and use the == operator.

When we compare primitive data types, such as two ints, two chars, two doubles, etc. we can use the == operator. We can also use the == operator to compare two objects. However, when used with an object, the == operator will only check to see if they are the same objects, not if they hold the same contents.

This means that code like the following will not correctly compare to strings :

if ( string1 == string2 )
{
System.out.println ("Match found");
}

This code will only evaluate to true if string1 and string2 are the same object, not if they hold the same contents. This is an important distinction to make. Checking, for example, to see if
aString == "somevalue", will not evaluate to true even if aString holds the same contents.

To correctly compare two strings, we must use the .equals method(). This method is inherited from java.lang.Object, and can be used to compare any two strings. Here's an example of how to correctly check a String's contents :