Hypothetical Scenario:
Lets say that, I need to find a way to delete an image from a list of images in a Java program. I go online to learn how to delete an image programmatically, and as I am searching the web on how to do this, I notice that multiple websites (non affiliated with each other) are teaching a very similar way to do this exact thing.
What should I assume is the copyrightability of such code being presented on these websites?