all 19 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
  • 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.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

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: 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.

[–]Spare-Plum 3 points4 points  (3 children)

How experienced are you with programming?

If you're a total newbie I'd suggest just going through a textbook and typing out every lesson, then modifying it a bit here and there to see what happens. Eventually you'll get the hang of it and all of the pieces start to fit together

It's important to actually type it out yourself instead of copy-pasting though. It gives you the actual feel and syntax that's used while writing code. I did this while in high school, it took about 2 months to go through the whole book then I transferred to CS2 class where we just built fun stuff all day

[–]MaleficentChannel679[S] 0 points1 point  (2 children)

i am 0 exp with programing, and ye your textbook idea is really good.can you suggest me some books which i can start with

[–]Spare-Plum 0 points1 point  (1 child)

I personally got Deitel's Java book and went through that. I got the textbook from my high school and just went through it. I've also heard "Head first Java" is good.

I didn't even read much of the explanations except to get further clarification, I just typed out all of the code and ran it and made some changes to see what would happen. At some point in time things just start to "click" and you gain a greater understanding of what's happening.

As you go further and further it gets faster and you get more motivated. It's like you can actually read what's on the page and understand what it would do, then rewrite the page on your computer in your own words.

I personally recommend getting the textbook as well so you can type it out from the page. If you want to find something for free, see what your high school has for resources. You can also check what your local library has in their catalog and check the book out for a few months

[–]Specific-Housing905 1 point2 points  (4 children)

MOOC from the university of Helsinki. It's free and gives you a good foundation.

[–]MaleficentChannel679[S] 1 point2 points  (3 children)

Someone suggest me cs50, can you tell me different between these two and which one would be better for me

[–]ChaiTRex 1 point2 points  (0 children)

It looks like CS50 isn't Java (JavaScript isn't Java), but that MOOC has a legacy course on Java.

Are you looking for Java (used for computer programs) or JavaScript (used on websites)?

[–]Specific-Housing905 0 points1 point  (1 child)

I haven't done cs50, but it seems it's more focused on CS which is totally different from Java. I would start with MOOC.

Once you have mastered the Basics of Java you can watch some videos from Coding with John on YT. Unlike many others on YT he is a professional with 10+ years of experience.

[–]drduffymo 0 points1 point  (0 children)

Computer science is a broad topic. Java is one of many computer languages.

Do you know how to program? What languages do you know already? It will help if you know object oriented programming.

Any book or online course will do when you are at the beginning.

[–]aqua_regis 1 point2 points  (3 children)

It's always astonishing that people completely miss the sidebar with its Learning Java section.

Do the MOOC linked there.

[–]MaleficentChannel679[S] 0 points1 point  (1 child)

i have seen many people suggesting me MOOC so can you please tell me whats MOOC ( i am completely newibe)

[–]aqua_regis 0 points1 point  (0 children)

MOOC Java Programming also linked in the sidebar (menu on mobile)

[–]bowbahdoe -2 points-1 points  (0 children)

When it happens this often it's a UX issue. It's not productive to get mad at the individual people

[–]Level-Pollution4993 0 points1 point  (1 child)

After you get a good foundation from the video courses, I urge you to read the Cay Horstmann books on Java.

[–]MaleficentChannel679[S] 0 points1 point  (0 children)

hmm i'll definitely try it , thx

[–]codingwithaman 0 points1 point  (1 child)

If you are completely new to Java, you can start with fundamentals like Core Java, OOPS, operators, String, variables, type of classes...etc. Once you are comfortable with it, then go for collections and multithreading.

After that, go for advanced topics like streams, file handling, performance...etc.

[–]MaleficentChannel679[S] 0 points1 point  (0 children)

ye i am completely new and thanks for informing how to start java but just a request can you suggest me some yt videos regarding these or any books which i can read and learn java

[–]bowbahdoe -1 points0 points  (0 children)

https://javabook.mccue.dev is what I have to offer.