imakerplugin/com.nokia.s60tools.imaker/src/com/nokia/s60tools/imaker/internal/iqrf/util/IQRFUtil.java
author Matti Hagman <ext-matti.hagman@nokia.com>
Tue, 21 Sep 2010 13:50:51 +0300
changeset 29 f48eb66e9604
parent 0 61163b28edca
permissions -rw-r--r--
Creator Carbide Extension 1.3.0

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/

package com.nokia.s60tools.imaker.internal.iqrf.util;

public class IQRFUtil {
	public static boolean equals(String string1, String string2) {
		boolean ret = false;
		if((string1==null)&&(string2==null)) {
			ret=true;
		} else if((string1==null)||(string2==null)) {
			ret=false;
		} else {
			ret = string1.equals(string2);
		}
		return ret;
	}
	public static void main(String[] args) {
		if(equals(null,null)) {
			System.out.println("null==null");
		}
		if(equals(null,"")) {
			System.out.println("null==");
		} else {
			System.out.println("null!=");
		}
		if(equals("","")) {
			System.out.println("\"\"==\"\"");
		}else {
			System.out.println("\"\"==\"\"");
		}
	}
}