Q:

Can someone help me define these 3 lines of code?

Can somebody help me with what these lines of code are actually saying? 
 if (!(x == snakeX && y == snakeY)) batch.draw(texture, x, y);

and 
 for (BodyPart bodyPart : bodyParts) {
        bodyPart.draw(batch);
    }

A:

here is what you could say about those lines
 if (!(x == snakeX && y == snakeY)) batch.draw(texture, x, y);

if some coordinate* (x,y) are not equal to the snake coordinate
  (position of the snake in the screen) then a texture will be drawn in
  the screen at the (x,y) position of the screen

 for (BodyPart bodyPart : bodyParts) {
        bodyPart.draw(batch);
    }

drawing all the part of the body of snake which each par is class
  named BodyPart

this code refer to the classic game of snake 
good luck

