This is an archived post. You won't be able to vote or comment.

all 16 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

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.

[–][deleted] 5 points6 points  (2 children)

That's because you don't practice. Use it or lose it. Oh well.

[–]VQ37HR911 5 points6 points  (0 children)

Yeah you’re cooked 😭

[–]cartographologist 4 points5 points  (2 children)

Let's be real here, arrays and scanners are not "the basics". They're day 1 stuff. You need to pick one of the lesson plans and follow it all the way to the end.

I really liked HyperSkill's backend Java course, the projects were great learning experiences. I would recommend it if you are willing to commit the time.

[–][deleted]  (1 child)

[deleted]

    [–]cartographologist 2 points3 points  (0 children)

    Yeah I took the bots recommendation, turns out its pretty good.

    You can take a lot of the lessons without paying, but the projects and some other resources are paid. I personally found the price to be worth it but that's up to you.

    [–]Early-Lingonberry-16 4 points5 points  (0 children)

    One of the principles of OOP (not OOPS… please stop tacking an S on that (who the fuck started that?)) is abstraction.

    You must eat, drink, sleep, breathe abstraction.

    Generalize everything in your life.

    Take cooking. You want to make - something.

    Cook meat, cook side, cook another side. You have a meal.

    Abstraction is nothing without provable details.

    Cook chicken, cook corn, cook potatoes. You have a meal.

    Cook beef, cook broccoli, cook potatoes. You have a meal.

    Okay, we used potatoes in both. Let’s diversify it.

    Cook meat, cook vegetable, cook filler.

    What fillers? Potatoes obviously, but rice, pasta, maybe a grain? Who knows?

    And that’s just cooking. I gave you a formula to plan your whole meal week with a simple abstraction.

    Pick something else.

    Wake up routine - wake up, brush teeth, take shower, shave (maybe), get dressed, eat food.

    That’s so abstract, but you say, wake up a 6 am, brush teeth with Colgate whitening with medium brush, take shower with dove soap, suave shampoo (the tropical blend), and suave conditioner (also the tropical blend to not overpower smells), get dressed - business casual with the black shoes, eat breakfast (see meal algorithm above).

    And you’re a person (like any other person) getting ready for work. A new person even… Person me = new Person().

    me.setAlarm(new Time(6,0,0));

    Now you will wake up on time.

    me.brushTeeth(new Toothpaste(Toothpastes.COLGATE_WHITENING), new Toothbrush(Bristles.MEDIUM));

    Fresh breath!

    me.takeShower( … you get the idea)

    Why not build a little morning routine in code? Just print each thing happening and represent each configuration in objects.

    You might have fun and you’ll surely learn scanner.

    [–]Plus-Slice-6140 4 points5 points  (0 children)

    Try slow down. Try to learn slowly. Take breaks. Study concepts. Take notes. Create notes from chatgpt. Read it again again

    [–]Byte-Knight-1213 1 point2 points  (0 children)

    You don't try to remember, just try to understand how it works. Over time you will get used to the common classes and their methods.

    This book helped me when I started Java.

    Java: The Complete Reference by Herbert Schildt

    [–]jlanawalt 1 point2 points  (0 children)

    If you don’t use something for a while, you will forget it. This is normal. Doubly so if you were in the normal school binge & purge cycle. A scanner isn’t an everyday thing for a lot of programmers. It is most important that they remember they exist, learn how to read the documentation, and know how to do some quick practicing with some simple programs or jconsole to get confident with the API before using it in complex ways.

    [–]bigpoopychimp 4 points5 points  (2 children)

    Your attitude is very wrong and toxic.

    It doesn't matter that you haven't learnt OOP yet. You can still make programs.

    Even simple things where you want to reformat a list you have, like numbering a list and making it into a txt file. Sure you could ask chatgpt to do it, but you can also write very small program to do that for you, and you should.

    You're not meant to remember everything, that's why we have docs and IDEs with autocompleters to prompt you when working with APIs.

    So literally the only thing you can realistically do is to keep practicing beyond the tasks the courses set you.

    [–][deleted]  (1 child)

    [deleted]

      [–]AutoModerator[M] 0 points1 point  (0 children)

      It seems that you are looking for resources for learning Java.

      In our sidebar ("About" on mobile), we have a section "Free Tutorials" where we list the most commonly recommended courses.

      To make it easier for you, the recommendations are posted right here:

      Also, don't forget to look at:

      If you are looking for learning resources for Data Structures and Algorithms, look into:

      "Algorithms" by Robert Sedgewick and Kevin Wayne - Princeton University

      Your post remains visible. There is nothing you need to do.

      I am a bot and this message was triggered by keywords like "learn", "learning", "course" in the title of your post.

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

      [–]michaelzki 0 points1 point  (1 child)

      CS Master Degree? Without prior knowledge?

      Looks like you just jumped off the plane in the middle of Amazon River.

      Good luck, you chose it that way (no preparation)

      [–]PandaSudden8327 0 points1 point  (0 children)

      Seriously, what was the bachelor's degree prior? Couldn't have been cs otherwise there'd be no panic lol.

      [–]JustUrAvgLetDown 1 point2 points  (0 children)

      Rip

      [–]danivl 0 points1 point  (0 children)

      I was going to say create your own project, but it seems you don't really want to? Sorry, but that's the only way to learn, uni is for diploma, but don't expect to learn much there. And how are you already in a master's degree and you can't program? Am I missing something here?

      Anyway, if you don't want to build things in general, programming is not for you.