First I spot the errors most likely caused by some not-for-programming
word processor:
- the quotes gone bad from the ASCII double quote " to some fancy text markup ones
- mostly auto-correction: capitalized keyword private
- indentation gone missing
All easy fixable - but next time either stick to the very simple notepad or use an editor for programming instead of some word processor like Word or others. Programming source code is far from regular text, hence it's called source CODE instead of source TEXT.
Aside from that I'm not sure what you're asking and what's your homework.
Im pretty new to Java coding and actually have to explain my codes lines by lines (what's happening in the code) for a school task.
So from this I understand your homework is to explain this code to someone else. Your question
Is there anyone kind enough and willing enough to help me with 2 java codes and explain them to me?
is basically us doing your homework. So, I guess the answer will rather be: NO.
Otherwise it may help if you try to re-phrase what your homework is, what you're supposed to do, how far you already come and what you struggle with. This way one from us can easier decide to may or may not put effort in helping you without doing your homework and present you with a read-for-copy'n'paste answer - as this board is to help not to solve problems or do homework.
Otherwise, if you just want someone doing your work you can offer payment. There's a sub-forum for offerings. But I would suggest: If you just do it for the sake of have something to put in your resume I would recommend you either to start learning or cancel your study. You may can get pretty far, but at one day you will hit a point where you cannot progress further cause you didn't learned the required skills and noone is willing to help. I've seen several to land on the street cause they tried to cheat the system - don'T make this mistake.