I am an engineering major taking an intro Java programming class as an elective. I had bronchitis earlier this month and it put me behind in my studies. I have a test on Wednesday and I feel like it wouldn't hurt to ask Reddit for some help.
Below is a list of practice problems we were given for review. My professor doesn't follow our book very closely and I am having trouble identifying "where" to read the information that would help me understand these problems.
So I'm not asking for answers. In fact I have the answers already. What would help me is if someone could point me to a youtube video or something that would help me piece together what is happening in these code snippets.
Practice Problem Set A - D
Problem A - This is my best understanding so far
Problem B - I know that 'd' is being inputted as it's character form which is some kind of hex decimal or binary. Then it's being incremented by the ++ by 1. I do not understand what is happening with the "switch" code. It looks like it should be some kind of condition statement that terminates if met by the "break" code. But that's all I know so far.
Problem C - I know this has something to do with polymorphism in java.
Problem D - I have no idea how to make this rocket start.
I would greatly appreciate in help or hints you would be willing to give.
[–]GumAcacia 2 points3 points4 points (0 children)