public boolean isPalindrome(int num) {
		String fullNum = "" + num;  
		int numLen = fullNum.length();
		
		if (!(numLen % 2 == 0)) {  // if number length is odd, disregard middle digit (read same both ways)
			fullNum = fullNum.substring(0, numLen / 2) + fullNum.substring((numLen / 2) + 1, numLen);
			numLen = fullNum.length();
		}
		
		// if the first half of the string is equal to the reverse of the second half, it is palindromic
		String firstHalf = fullNum.substring(0, numLen/2);
		String revSecondHalf = "";
		
		for (int i = numLen; i > numLen/2; i--) {
			String digit = fullNum.substring(i-1, i);
			revSecondHalf += digit;
		}
		
		//System.out.println(fullNum + " " + firstHalf + " " + revSecondHalf);
		
		if (firstHalf.equals(revSecondHalf)) {
			return true;
		}
		else {return false;}
	}