r/learnjava 1d ago

Best way to learn java?

So i wanna learn java as a hobby but what is the best way to learn it? Idk my goals yet maybe eventually mc mods but idk

And does is matter i dont know advanced math since i dropped school at 12 im 16 now and yes im working on jt

10 Upvotes

17 comments sorted by

u/AutoModerator 1d 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.

5

u/CharacterAnt00 1d ago

You dont need advanced maths to code.

If you're a complete beginner, watch on YouTube: Java Basics - Crash Course from 2 years ago by freecodecamp or hop on w3 schools website and do all the java things there.

Then, start making projects. Literally the best way to learn coding. Make Projects. Start with terminal applications, like a simple register and login where things like the password and the name get saved in variables. Then maybe a to do app where the todos get saved in a List. The user can select between adding a new todo or viewing the todos from the List.

You dont know how to save something in a list or what a list even is? Google "what is a list java" or "how to put something in a list java".

Also, read about Data Structures. on google search "data structures java free pdf" and read one. Even if its from 2002, data structures dont change. Read about linked lists, hash maps, hash sets and things like that.

So basically, watch a course about the basics, then make stuff and google if you dont know stuff, thats how you become a good coder. Not by asking how to become a better coder 100 times on here, thats how i wasted a lot of my time. Dont be scared about Diving into things you dont know, like how to make a GUI App in java and things like that. You WILL learn how to do it and understand Things, theres no other outcome. You have to start tho and google about everything you do not know.

0

u/Visual-Fortune-4732 1d ago

are there any good other good course videos?

and are vids even good i heard some people say they are really bad for coding

1

u/CharacterAnt00 1d ago

There are definetly "better" course videos, but freecodecamp is usually a pretty good site and Channel to learn stuff. I'd really suggest just watching that video to get the fundamentals down because thats your main goal. Then once you understand basic things Covered there and followed along, you need to start Experimenting yourself and making projects. Thats how you learn. Vids are good if you just watch one to get the basics of something down, but then you need to start making your own stuff and googling things you dont understand. Just watching crash course after Crash course after Crash course is bad, yes.

5

u/desrtfx 1d ago

!sidebar

1

u/AutoModerator 1d ago

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

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 1d ago edited 1d ago

you don't need maths to learn java. Just hop on https://java-programming.mooc.fi and start learning

Edit: typo

1

u/PleasantMix6193 1d ago

can you tell me what parts i can skip if im a decently experienced (in other languages) programmer. i don't want to learn things like "what is programming" and "how to compiled your code"

1

u/nitin_is_me 1d ago

If you have prior programming experience, you might want to skip part 1 and 2 as they contain generic programming stuff like loops, conditionals etc. But I'd still advice you to take loop at printing and reading inputs to solve further exercises. The rest parts are important and help in building intuition for java and OOPs in general.

2

u/Ollidav 1d ago

Todos los lenguajes de programación serios tienen páginas de documentación con un getting started que te va a enseñar la base del funcionamiento del lenguaje. Además también disponen de la documentación técnica sobre el api con la que tendrás que familiarizarte ya que es una documentación que se consulta con mucha frecuencia. Cuando te sientas cómodo con la documentación y el lenguaje busca un framework que se adapte al problema que quieres resolver por qué seguramente ya venga con muchas cosas resueltas que quieres hacer

1

u/vegan_antitheist 1d ago

Programming is all about abstract thinking and problem solving. Everything is maths. You don't have to be good as everything in mathematics, but you have to be good at discrete maths. That's about sets, integers and graphs.

In your case it's probably best to just do what you enjoy. There are lots of things you can do. You can process data, you can create games, you can use it for web sites or web apps. For mobile it would probably make more sense to learn TypeScript, Kotlin, or Swift.

1

u/MrSqueak 1d ago

What happened that you dropped school at the age of 12?

1

u/Visual-Fortune-4732 1d ago

Mental stuff and more

1

u/Spare_Bluebird7044 1d ago

Just start with beginner java tutorial or course and build small projects as you go, advanced math is not necessary for learning java and you can pick up any math you need later, get help from some experienced guy

1

u/StephenHawkingus 22h ago

Are you indian?

1

u/Dense-Ad-3247 22h ago

Typing it by hand. It's the best way.