r/learnjava • • Feb 07 '21

Website for practicing Java?

Im currently learning Java from MOOC, the exercises are good, but sometimes I would like to practice what I already know. I tried HackerRank but it's little bit confusing for me.

It doesn't need to be website, maybe some videos for practice or anything else.

Any recommendations?

92 Upvotes

28 comments sorted by

68

u/[deleted] Feb 07 '21 edited Feb 08 '21

9

u/[deleted] Feb 07 '21

This should be on the about section of the sub

4

u/[deleted] Feb 07 '21

Codegym.cc

1

u/[deleted] Feb 07 '21

How good is this website??

1

u/Miya_in_the_bush Feb 07 '21

The lessons are pretty good, but sadly you will have to pay after a few lessons and to unlock the practises.

2

u/bruggekiller Feb 07 '21

Not to forget: https://www.baeldung.com
One of the best out there (imo)

17

u/t999rex Feb 07 '21

start here and then move on to the links in the other comments https://codingbat.com/java

4

u/Ternarian Feb 07 '21

Codingbat is amazing!

1

u/Im_Rambooo Feb 07 '21

I used coding bag for my APCS exam and I did well on it

1

u/[deleted] Feb 07 '21

I find coding bat even too hard... how do u guys get to a stage were use are able to these coding style interviews?

Basically asking how use learnt java lol. I’m struggling to just grasp it...? I’ve been doing it for a few months now.. just can’t seem to be able to do it myself or answer these questions but I can read the code and understand it’s syntax.

1

u/t999rex Feb 08 '21

codingbat has questions in incremental difficulty and is divided into sections ....so after finishing video lectures i started codingbat and if i find myself struggling in a section (say Strings) i would go to websites like

https://www.tutorialspoint.com/java/index.htm

https://www.javatpoint.com/java-tutorial

https://howtodoinjava.com/

https://www.programiz.com/java-programming

and refer that particular section

1

u/[deleted] Feb 08 '21

Alright thanks I’ll save those sites and do the same.

6

u/DevilDawg93 Feb 07 '21

Derec banas on YouTube is really good

6

u/sandiego34 Feb 07 '21

https://practiceit.cs.washington.edu

this website is useful for practicing

3

u/[deleted] Feb 07 '21

I would suggest you pick up one website (and make sure you can find editorial for all the questions you do) and focus on completing it. And you can give competitions on multiple websites and make sure you solve each and every question of competition after the contest is ended. Some websites for competition are-

  1. Codechef

  2. Codeforces

  3. Leetcode

  4. Hackerearth

3

u/Gixx Feb 07 '21 edited Feb 07 '21

Competitive coding sites

The open problems column is not accurate. What I mean by NO is that the site is mostly a contest site and it's hard to find the free, open problems. Don't make me click through 5 pages, register with your bad UI to find the problems.

stdin/stdout is that most of the sites do not require you to read input and write to stdout. Leetcode just wants you to return an array.

websiteopen problemsstdin/stdout# of langs# problemscomment
Kattis [1]yesyes213000best stats, no editorials
Codeforcesyesyes6000decent stats
Leetcodeyesno20tonstons of plagiarism
Atcodernocontest site
Codechefno
Codewarsyesno31nice editorials
Hackerrank
topcodernoconfusing search
Codesignalyesno800great UI, has SQL
usaco [2]yesc++, java, pythongreat resources [3]

I do kattis. I tried 2-3 of them, and what I do not like is the confusing environment on leetcode. I get confused on how they want the class or method setup. Or if I can use global static variables (it was buggy, sometimes it would accept it).

Sites like kattis and codeforces you can just drag/drop 5 files if you wanted.

[1] - https://open.kattis.com/problems?order=problem_difficulty
[2] - https://usaco.guide/silver
[3] - https://usaco.guide/general/resources-cp?lang=cpp

1

u/[deleted] Feb 07 '21

I suggest you can use Codecademy or Udemy

1

u/taftster Feb 07 '21

Leetcode is pretty fun. It's more about algorithm design (and interview questions). But you can somewhat practice your language of choice there as well, Java included.

https://leetcode.com/

1

u/cantseemtosleep Feb 07 '21

leetcode is pretty good, plus a lot of interview questions are comparable to those you'll find on leetcode, if not the exact same ones.

1

u/CaloK1ng Feb 07 '21

Leetcode

1

u/puzzled_puzzler Feb 08 '21

I feel you on the difficulty of some of these practice sites. Someone shared this to me the other day and I was able to get through the intro one which was a huge boost for me. Cant wait to try some more.

https://code.golf

Other than that and these other sites on here, I would just google "practice" for whatever concept you are currently learning so you can sort of customize for where you are.

I would be curious to know what you think on any of these you end up trying.

1

u/Malodude Feb 08 '21

Codingbat.com

1

u/velowen Feb 08 '21

Please watch TheNewBoston's playlist on Java tutorials and code along with him. He is an amazing teacher and you'll learn all the fundamentals. Taught me everything I know. If I could go back and start fresh I would do the same thing I did before.

0

u/AutoModerator Feb 08 '21

Please, don't recommend/use thenewboston.

They are a discouraged resource as they teach questionable practice. They don't adhere to commonly accepted standards, such as the Java Code Conventions, use horrible variable naming ("bucky" is under no circumstances a proper variable name), and in general don't teach proper practices, plus their "just do it now, I'll explain why later" approach is really bad.

Derek Banas covers about the same ground, but in much better quality.

If you're looking for an in-depth, comprehensive, high quality, free Java course, use the MOOC Object Oriented Programming with Java from the University of Helsinki and maybe Java for Complete Beginners by John Purcell as secondary resource.

I am a bot and this message was triggered by you mentioning thenewboston. Please do not respond to this comment as I will not be able to reply.

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