package com.haxademic.core.data;

public class ConvertUtil {

	public static int stringToInt( String str ) {
		return Integer.parseInt( str );
	}
	
	public static float stringToFloat( String str ) {
		return Float.valueOf( str );
	}
	
	public static String intToString( int number ) {
		return Integer.toString( number );
	}
	
	public static boolean stringToBoolean( String bool ) {
		return (bool == "true") ? true : false;
	}
}




package com.haxademic.core.data;

public class ConvertUtil {

	public static int stringToInt( String str ) {
		return Integer.parseInt( str );
	}
	
	public static float stringToFloat( String str ) {
		return Float.valueOf( str );
	}
	
	public static String intToString( int number ) {
		return Integer.toString( number );
	}
	
	public static boolean stringToBoolean( String bool ) {
		return (bool.equals("true")) ? true : false;
	}
}




Fix stringToBoolean() text comparison