r/learnjava • • Sep 13 '17

mooc- not a good learning way

So I've been trying to use http://mooc.cs.helsinki.fi to learn java, a year or so ago I was looking into Java as well, but went to networking, so I'm back to Java and everyone praised this site, but I honestly look at it and it is garbage. How is anyone learning anything with it? Am I missing some video lessons or explanations?

As an example: I'm doing the adder.java project and it asks:

Create a program that asks the user for two integers and then prints their sum.

Type a number: 6 Type another number: 2

Sum of the numbers: 8

I have no idea how to do any of this, the steps above do not compile at all.

Did I literary miss half of this course?

0 Upvotes

18 comments sorted by

4

u/nutrecht Sep 13 '17

Did I literary miss half of this course?

Uhm, yes? You can't just jump in half-way? Also what do you mean with this:

the steps above do not compile at all.

Did you literally type "Sum of the numbers: 8" in your IDE?

1

u/[deleted] Sep 13 '17

I completed and compiled everything up till the adder. What I mean is

For example:

Edit- ok no idea why pasting won't work.

http://mooc.cs.helsinki.fi/programming-part1/material-2013/week-1?noredirect=1

7. READING USER INPUT section

This simply doesnt compile

2

u/nutrecht Sep 13 '17

This compiles just fine:

import java.util.Scanner;

public class ProgramBody {
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        // program code
    }
}

I literally only copy-pasted this to format it. No changes.

1

u/[deleted] Sep 13 '17

This is what I get

https://imgur.com/YVwXNMK

To be honest, nothing compiles past 7. READING USER INPUT section

im using netbeans with tmc 1.1.7

5

u/nutrecht Sep 13 '17

It literally tells you that the stuff should be in a file named ProgramBody.java. It also says so in the course:

The program is stored in a text file named after the program with the .java extension. For a program named Example, the file should be named Example.java.

-1

u/[deleted] Sep 13 '17

By any chance, would you know of any sources to start learning Java for an absolute beginner? I don't think mooc is going to work for me, I literarly read everything from section 1 to section 7 and I feel like the only skill I improved is copy and paste.

5

u/nutrecht Sep 13 '17

Your approach is wrong. Copy-pasting stuff doesn't learn you anything. And that MOOC is about as easy as it gets.

Maybe video works better for you. These are quite well done: https://www.youtube.com/watch?v=TBWX97e1E9g

0

u/[deleted] Sep 13 '17

I really try to read it all and interpret/experiment, problem is I can't really learn from written material like this because if something doesn't work (for example doesn't compile) i have no idea what to do.

4

u/-manabreak Sep 13 '17

If you don't get a personal tutor, that's pretty much how you learn programming. Whenever you run into a problem, google the exact issue. It's 99.9% chance that someone has ran into the exact same thing and asked it on StackOverflow.

In your previous case, just like nutrecht said, it clearly says in plain English that your class should be in a file called ProgramBody.java. In Java, your file must always have the same name as your class.

1

u/sonofaresiii Sep 13 '17

Go to your local library, go to the programming/computer/tech and get any book that says something about Java and Beginners on it. It will probably be very outdated but you really only need the first two or three chapters anyway, which can't really be outdated.

That's the best way to get the basics, because the helsinki mooc course and what you're describing really shouldn't be that difficult, i think you just skipped some fundamentals.

If you really can't find anything at your library, pony up the fifteen bucks to get something from amazon.

Personally I think the helsinki course is a little eh in terms of how they explain things for beginners, but all the information is there.

You might also think about looking at some video tutorials online. Personally I've found that John Purcell's java courses on caveofprogramming.com and Derek Banas's tutorials on youtube were really good for java, but fair warning IME they both kind of hit a point where I stopped understanding what they were saying and had to look elsewhere to continue learning, then come back to the tutorial series.

They'll both be really good to get you started.

Ultimately though unless you want a personal tutor, you're never going to have any luck if your issue is that someone isn't there to watch over you and tell you exactly what you did wrong. Work on your google-fu and make sure you understand the fundamentals, debugging and fixing errors on your own is vital, when you want to work professionally "I don't know why it won't compile and no one will tell me" isn't going to be an acceptable excuse for not finishing something.

1

u/[deleted] Sep 14 '17

a great example, thanks !

→ More replies (0)

3

u/desrtfx Sep 13 '17

By any chance, would you know of any sources to start learning Java for an absolute beginner?

The MOOC you are talking about still is the best resource for an absolute beginner. It's your approach that is wrong.

How about Java for Complete Beginners that is linked in our sidebar?

Your approach to learning will not really work, though. You need to manually type out the code and never copy-paste.

You also need to learn to interpret and google your errors. Java and the IDE give perfectly clear error messages.

2

u/xX_dublin_Xx Sep 13 '17

You could try the Head First java book (http://www.headfirstlabs.com/books/hfjava/). Those are quite simple and walk you through the basics in a way that's a bit less dry than most technical books. Lynda, Udemy and Pluralsight all also have great video content for beginners (and all skill ranges).

Although, you should be aware that there are many challenges that will get in your way, even once you're experienced. Being able to work your way through them is pretty much the job description. I don't mean this to come across negatively - just friendly advice. If that's not something you enjoy, it might be easier to cut your losses now.

1

u/[deleted] Sep 14 '17

I'm an absolute beginner and have made it to the 2nd half with few hiccups. If you have issues with the way they explain any topic (and you will) simply look up the topic in Google and someone else will explain it better.

7

u/crappy_ninja Sep 13 '17

I really recommend you stick with it and try to persevere. Once you get a good flow going you'll learn a lot.

1

u/cheebamech Sep 19 '17

Hey just to speak up, I'm doing the same MOOC as well; one thing that helped a bit was also watching/reading some on programming logic and design. This helped me figure out the 'flow' of the programs, making it easier to comprehend. Good luck and keep trying!

1

u/[deleted] Sep 28 '17

Thanks for the message. Great to hear things like that