CodeErrors
@MyCodeError
Keeping track of all the reasons my code doesn't run
was using event.gety() for MotionEvent in the if statement condition and was using event.getx() inside the if statement #AndroidDev
called the functions getx() and gety() for MotionEvent e and forgot to call it as e.getx(), e.gety() #AndroidDev
was trying to load a vector bitmap onto a canvas
set the the start, end, bottom, and top values the same and so the shape i was trying to draw on the canvas did not stretch in any direction
had a while loop for a thread that was meant to be executed once
forgot to call "editor.apply()" when using SharedPreferences
the elements visibility in the XML file was set to invisible and that caused the click listener function for that element not to be triggered
i had the data type of one of my IDs as String and was wondering why it always returned 9 as the max when i tried to increment it for a new ID
tried to initialize the recylerView when the host fragment was being created and not when the fragment that the view belonged to was
going from array length to 0 in a for loop. Was incrementing "i" instead decrementing from it
Passed the wrong size of the array to the function
Nothing was wrong, it ran perfectly on the first try. I am shocked, still looking for mistakes cause thats not possible in this world
Left a semicolon after the if statement in a loop and spent 1 hour figuring out why the function was returning the first element in the array that i was looking through
Used i < lengthOfWord instead of <= was getting a substring for a search and it got out of the loop before comparing all of the word
Was putting a string into a char array and forgot to omit the spaces
Didnt pass the pointer by reference when i wanted to modify the pointer itself
Didnt put ->next of pointer i was using to go through linked list to NULL before assigning the tail it to. Wanted to shorten the linked list
Declared Head->next = tail Before creating the node for the tail
Used Tail->next = tail Instead of Tail = tail->next
Wanted to print a linked list and placed the Pointer = head In the loop
United States Tendências
- 1. #SNME 13.6K posts
- 2. Georgia 45.6K posts
- 3. Lagway 3,308 posts
- 4. Jaire 8,530 posts
- 5. Forever Young 28.5K posts
- 6. #GoDawgs 4,865 posts
- 7. Gators 5,639 posts
- 8. #UFCVegas110 7,285 posts
- 9. Miami 60.6K posts
- 10. Gunner Stockton N/A
- 11. Lebby N/A
- 12. Howie 2,943 posts
- 13. Carson Beck 4,385 posts
- 14. Shapen N/A
- 15. Nigeria 567K posts
- 16. Ringo 13.3K posts
- 17. Mario 68.1K posts
- 18. Jeremiyah Love 1,237 posts
- 19. #iufb 2,113 posts
- 20. Chauncey Bowens N/A
Something went wrong.
Something went wrong.