i put some println statements before i compare anything and in my else statement just to see if i was getting a false positive and at first it works and tries to compare 3 to 1 and then even gets to...
Type: Posts; User: tomlisi92
i put some println statements before i compare anything and in my else statement just to see if i was getting a false positive and at first it works and tries to compare 3 to 1 and then even gets to...
sorry about that i added sortedlistinterface.java so it should compile now! and i print out numberOfEntries and i and they both are working correctly but im still getting the output of 1 and 4 4's...
having some problems with my add function it is supposed to add another node to the list in a sorted order but i don't think its working at all and thats why im getting a null pointer exception in my...
I think it has something to do with my temp array because once i start trying to put a in to temp that causes the error but i cant create t without setting it to null at first
I have a lab that requires me to sort type T arrays with assertion sort and merge sort. But my merge sort is giving me some problems and I'm not sure why. Thank you in advance for any help!
...
ahhh yes wow i cant believe i missed that! but its all done now thank you so much for your help
sorry
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method temp(int) is undefined for the type PalindromeChecker<T>
at...
i tried using
else if(temp[j].equals(temp(stacklength-1-j))){
but its giving me an error for the temp in the .equals
Thank you guys so much! but now im working on fixing my isPalidrome function here is what im at now if anyone wants to look
public boolean isPalindrome() {
int stacklength = 0;
...
im new to java and you just confused me more haha could you explain differently
PalindromeChecker.java
/**
* @author lisit
*
* @param <T>
*/