r/learnjava • u/Randomaak • 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?
17
u/t999rex Feb 07 '21
start here and then move on to the links in the other comments https://codingbat.com/java
4
1
1
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://www.programiz.com/java-programming
and refer that particular section
1
6
6
3
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-
Codechef
Codeforces
Leetcode
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.
| website | open problems | stdin/stdout | # of langs | # problems | comment |
|---|---|---|---|---|---|
| Kattis [1] | yes | yes | 21 | 3000 | best stats, no editorials |
| Codeforces | yes | yes | 6000 | decent stats | |
| Leetcode | yes | no | 20 | tons | tons of plagiarism |
| Atcoder | no | contest site | |||
| Codechef | no | ||||
| Codewars | yes | no | 31 | nice editorials | |
| Hackerrank | |||||
| topcoder | no | confusing search | |||
| Codesignal | yes | no | 800 | great UI, has SQL | |
| usaco [2] | yes | c++, java, python | great 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
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.
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
1
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.
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
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.
68
u/[deleted] Feb 07 '21 edited Feb 08 '21
https://geeksforgeeks.com .
https://hackerrank.com .
https://hackerearth.com .
https://codechef.com .
https://codeforces.com .
https://learnbyexample.com .
https://dmoj.ca .
https://codewars.com.
These are some websites for practicing coding
EDIT: including suggestions from the comments
https://www.baeldung.com/java-tutorial