public static boolean ProvjeriInt(String in){
		
		int base = 10;
		if (in.charAt(0) == '0'){
			base = 8; // oct, upitno dali se koristi
			if (in.length() >= 3 && (in.charAt(1) == 'x' || in.charAt(1) == 'X')){
				base = 16; // hex
				in = in.substring(2, in.length());
			}
		}
		
		try{
			Integer.parseInt(in, base);
		}catch(NumberFormatException e){
			return false;
		}
		return true;
	}