r/javahelp • • Aug 01 '20

Codeless How would I learn more java?

I used sololearn to learn the basics of java and want to learn more, is there a way I can learn more java with a resource that teaches me and then asks me questions, just like sololearn? (I'm not sure if this is the correct tag or not)

30 Upvotes

15 comments sorted by

View all comments

22

u/TheYellowblizzard Aug 01 '20

Maybe there are some resources like this but you shouldn't really use them. Do the following after you know the basics:

First do some small projects like: A tictactoe ai A Sudoku solver A pathfinding algorithm Chess Maybe a simple parser

Then read about the following things (if you don't know them already):

Inheritance

Overriding / Overloading

Interface (and why you should use a lot of them)

Generics

Streams

Then you can do some more complex projects:

A little game with graphics

A ki for an existing game

Maybe even an App

On this road you also need some computer science knowlage which is not specifically related to Java. When you fell the need for it you should look into:

Data Structures

Basic Algorithms

Graph Theory

Design Patterns (!)

This is a project orianted learning approach to this but I think this the best methode to get really good in Java in a relatively short amount of time (but keep in mind that you'll have to rewrite a lot)

1

u/Stmated Aug 25 '20

I agree with the sentiment of this, to just start writing projects, but not sure what's up with the heavy focus on games.

Do a calculator application, or a spreadsheet that let's you input your groceries and it can give you info about the recommended intake of certain minerals, or a bunch of lists where you select football players for two teams and get a win percentage, or a console application that outputs a story where you can select paths from multiple options, et cetera, et cetera.

There is way too much overhead to learn with visual programming like games, and you mostly don't even need it, just read up on it if you ever want to make an actual game.

1

u/TheYellowblizzard Aug 25 '20

What do you mean by "heavy focus on games"? I literally had one game as example and it was chess. And I don't understand why you say a game is to complex because of graphics when I even list that as a more complex project... And by the way: It seems like you don't understand what visual programming is. Visual programming has nothing to do with graphics or games

1

u/Stmated Aug 25 '20

All I'm saying is that Tictactoe and Sudoku and Chess are all game-related, and little game and something for another game is also game-related.

And by "visual programming" I of course meant programming where you have to deal with visual aspects like painting, and not a VPL.

Anyway, not sure why I'm responding since this is argumentative for no reason (which I silly-ly started). You gave very good recommendations for topics to look into.