r/java • • Apr 10 '14

I'm learning java and am running into trouble, is it me not understanding it or is the teacher bad at teaching it?

I normally have no problem teaching myself things with the internet, I've had to teach myself quite a bit of stuff during my "intro to programming" class that I'm taking.

I'm starting to run into problems where I don't know if it's me not understanding things or if the teacher is so bad at explaining them that I'm having trouble following. I get the feeling it's because he's trying to dumb it down to a point that people understand it better and don't drop the class. He didn't teach us how to make a graphics window appear before we started learning how to draw the pictures on the screen. The first half of the class was taught using scratch and some database stuff so that we could learn "if you type something on the screen it'll do something." Then we get thrown into java.

A lot of the homework is taught in "snippets." As in "write the snippet of code that does this." But I'm not learning how to apply it in a java source code.

I've been getting 100's on everything thus far, but this homework has me stumped, and I don't know if it's his formatting in his lecture notes, or if it's because when he lectures in class, he just kinda skims through his slides because he's been using the same ones for years.

This is a link to the homework I'm currently working on: http://walshe.faculty.mjc.edu/Virtual/IntroToProgramming/homework/homework12/homework12.html

I'd like if someone could take a look at it, specifically questions 1-8, using his "UML-Like" diagram and tell me if you can make heads or tails of it.

These are the answers I have so far.

  1. MultiplyTwoNumbers myObject = new MultiplyTwoNumbers(1,2);

  2. System.out.println(number1);

  3. System.out.println(number2);

  4. Int firstNumber = myObject.number1

  5. myObject.number2 = myobject.number2 + 1

  6. System.out.println(getProduct);

  7. Int myProduct = myObject.getproduct

If his homework is understandable, and these are wrong, please tell me why, I'm really trying here. If they're right, I'd also like to know why, I feel like I'm blindly writing things down hoping it's correct with very little understanding of how it actually works.

I've spent an hour on question 8 trying to read through past lectures to figure out why I'm not getting it. I just feel if he would teach us proper java instead of handing us half of the work, not explaining how it does what it does, and then expecting us to figure out on our own to fill in the blanks, I'd understand this. Hell, even some internet tutorial would be useful at this point.

0 Upvotes

1 comment sorted by

View all comments

6

u/desrtfx Apr 10 '14

Sorry, but the assignment is perfectly clear.

I just feel if he would teach us proper java instead of handing us half of the work, not explaining how it does what it does, and then expecting us to figure out on our own to fill in the blanks, I'd understand this.

That's what most people do when they are programming. Tracing through code that somebody else wrote, trying to understand and troubleshoot. - Actually, being able to work like this is one of the most valuable skills.

One skill that every programmer needs is to read the Java documentation at Oracle - it is indispensible!

As for a good beginner's tutorial on the internet, look at Java for Complete Beginners at Udemy.com (it's free).