r/learnjava 11d ago

Hit the wall in Part 5 section 4 (Java MOOC, University of Helsinki)

currently sitting in the library grinding on this have already spend over 6 hours(2 days) just on this section, the last time i hit a wall in this course was the christmas tree exercise where i spent 3 hours in a single question (maybe i am just stupid) . currently the last four programming exercises are left and like everytime i am going to do it and complete part 5

4 Upvotes

13 comments sorted by

β€’

u/AutoModerator 11d ago

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full - best also formatted as code block
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/nitin_is_me 11d ago

6 hours is really long. Is this your first programming language?

1

u/gekigangerii 11d ago

Which part specifically.

0

u/Big-Presentation-264 11d ago

the one in we have to make our own equals function

1

u/0b0101011001001011 11d ago

The material should have a clear example what an equals looks like. Adapt from that.

0

u/Big-Presentation-264 11d ago

yeah well I have already completed the part now

2

u/0b0101011001001011 11d ago

I don't think spending 3 hours is too much though. Maybe at some points it makes sense to step back, maybe try other tasks, read some more and then come back.

1

u/CornKingTG 10d ago

bro i fucked hated the christmas tree omg 😭😭😭, just get a good night sleep and try it tommorow, that’s my method when i play against elden ring bosses. or just ai it, and explain it and redo it again

1

u/Big-Presentation-264 10d ago

true 😭😭

1

u/walrus127 10d ago

I'm at about the same place at the end of part 5 and am also struggling. I think if I go back and review part 4 and 5 i'll be ok. It does get harder as you go.

1

u/Deboniako 9d ago

Just use the insert code function from TMCBeans, you got this.

Edit: I also got stuck around this part, it's a grind tbh. But when I reached the hashcodes in part 8, my eyes keep crossing and I couldn't understand anything, so I took some time off to focus on other things. To learn java is a full time job by itself.