r/learnjava • • Aug 15 '26

Finished C++ during vacation — should I do DSA in C++ or switch to Java for backend?

0 Upvotes

So my vacations are basically over, and I’ve completed learning C++ during the break. Now I want to start DSA, but I’m a little confused about what direction to take.

I’ve talked to a few people and got completely different advice 😭

Some told me that I should start DSA in C++ and stick with it for now, since I’ve just finished learning C++ and can directly build my problem-solving skills on top of it.

Others told me I should start Java alongside DSA, because I eventually want to learn backend development and Java/Spring Boot is useful for that. Their point was that I might as well start Java now instead of delaying it.

For some context, I’m a 2nd-year CSE student and I already know Python, MySQL, HTML/CSS, C. My goal is to get good at DSA and also start building proper development skills for internships.

So what would you recommend?

I’d especially like to hear from people who have already gone through this transition. Is learning Java right now actually useful, or would it just divide my attention when I should be focusing on DSA?


r/learnjava • • May 22 '25

How can I code Mine Sweeper in Java

0 Upvotes

I am currently learning how to code Java via CodeHs, however in school I have a project and I was thinking about coding Mine Sweeper with an additional set of rules and elements. Does anyone have a Java code so I can start with a working base. Also I don't know what this means but we are supposed to be coding in Java(main), not sure if that helps.


r/learnjava • • Mar 03 '25

I need to learn Java. In 3 weeks.

25 Upvotes

Hey guys, this might not be a usual question that's asked around in this community, but here goes nothing.

I'm in 11th grade, studying at an Indian Highschool. We don't have AP classes, so if you want to give an exam, you're basically on your own.

I stumbled across Python last year, and basically fell in love with it.
Amidst the rigorous jump in studies, I didn't get a lot of time to build on my coding skills, but whatever time I got, I spent it there.
I've got beginner-early intermediate skills in Python, but am completely new to Java

I'll be giving the AP CS A exam this May, which is basically structured all around beginner level Java concepts and don't have a lot of time to prepare for it.

Are there any resources/videos/courses that you'd recommend for me?

perhaps a standalone all in one course that could teach me a lot of Java?

I'm new to reddit as well, so I don't really know how to ask questions lol.

idk if I made any sense out here, but I'd really appreciate any help


r/learnjava • • Jul 07 '25

Java

1 Upvotes

I am starting to learn java on my own, any tips and tricks for a beginner?


r/learnjava • • Sep 20 '26

Which sector will teach me the most of java and all DSA fastest

1 Upvotes

Hi, first of all sorry for poor English, but as someone learning Java , can anyone tell me which sector will teach me the most of Java and frameworks and functionalities and working with its DSA? Web dev? Building s game ? Or which one?


r/learnjava • • Feb 21 '24

I have just started Java, how much time will it take to complete it along with my college studies?

1 Upvotes

I am studying in college and due to other subjects, I am not getting time to study which I am interested in. Can anyone tell me how much should I study in a day to learn Java in a better way? And what are the topics on which I need to focus more??


r/learnjava • • Sep 01 '19

java :new

1 Upvotes

In Java why do I need to create an object for JFrame but not for JOPTIONPANE?


r/learnjava • • Jun 24 '23

What are some good resources to learn OOP?

0 Upvotes

the title


r/learnjava • • Sep 23 '24

Java need help

1 Upvotes

Two weeks ago, I started studying Java at school, learning basic concepts like switch, for, do while, while, Scanner, and modulo. The problem is that when I try to solve a new exercise, I’m not able to do it because I don’t clearly understand how to solve the logic behind it. I either need ChatGPT’s help or for my teacher to break it down for me. the guy sitting in front of me does all the exercises in about 10 minutes, while it takes me 10 minutes just to finish one, and I still make logical mistakes (not syntax errors) but rather mathematical ones. How can I improve my logic or/and reasoning In Java? Btw I know that the guy In front did code before and I am aware that it is a matter of time till I fully understand and be able to solve independently exercices without any help.


r/learnjava • • Aug 30 '24

list.size() show 1 value if there's 2

0 Upvotes

I'm having this mental breakdown and I can't seem to understand why the final sout prints 1 if there are 2 items in the list.

ArrayList<String> list = new ArrayList<>();
System.out.println("Number of values on the list: " + list.size());

list.add("First");
System.out.println("Number of values on the list: " + list.size());

int values = list.size();

list.add("Second");
System.out.println("Number of values on the list: " + values);

r/learnjava • • Sep 30 '22

Which compiler I will choose better?Idea or Eclipse?

1 Upvotes

Before the class , I was using the Idea to coding. But after the class begin , my Java teacher told me I would be better to change to using Eclipse .So which IDE I will choose better?


r/learnjava • • Aug 23 '24

How to become expert in Java Programming

0 Upvotes

I'm beginner in Java Programming. How to master java programming??


r/learnjava • • Apr 19 '20

-20%

2 Upvotes

Hello, I am starting in Java and I would be happy if you could help me. I was searching on google but I could not find any video or article about this. I only found how to divide or how much is 50% out of 200

I learned how to subtract or divide but I want to make something like this 500-200=300-(20%) in one button click. I mean how to subtract % of a number.

I would be very happy if you could help me or if you know a video that can solve my problem.

Regards Stinovlas :)


r/learnjava • • Mar 08 '26

Am I ready to learn Spring and Springboot

2 Upvotes

Hey guys, sorry if this question has been asked multiple times. I have a good understanding of core java, java 8, collections, generics and servlets, JDBC and jsp. Is this enough for staring to learn Spring and Springboot or is this even helpful for it. Should I start learning it and if not what topics should I learn and practice first.

Thanking you in advance for your replies.


r/learnjava • • Apr 05 '25

Java!

0 Upvotes

Planning to learn Java and get some certificate along side it! Can someone recommend courses from like Udemy or Coursera! Or if there are any better places to do them!


r/learnjava • • Oct 14 '25

Learn the basics of OOP in a day?

0 Upvotes

Pretty much the title, I have no prior experience and was wondering if I could get the basics down in a day.


r/learnjava • • Dec 09 '25

Best books to learn java

0 Upvotes

I am a bit tired of learning java from youtube can someone recommend me books that cover from basics to advance with a good set of questions also in it


r/learnjava • • Aug 14 '24

Is purchasing Codecademy Pro for learning java worth it?

0 Upvotes

I am learning java from scratch using Codecademy free plan but there option for Projects and Quiz is locked so I am thinking of purchasing the Pro Plan to learn Java to get a job, will it be worth it?


r/learnjava • • Nov 16 '18

W3Schools

0 Upvotes

Does W3schools cover all the important topics for a beginner. Also what free courses to refer after I finish the w3schools course


r/learnjava • • Jul 06 '15

Can anyone tell me what's wrong with this code?

Post image
0 Upvotes

r/learnjava • • Nov 21 '14

learning about methods, question

0 Upvotes

it's not covered in the text so i figured i'd ask. so basically methods = a way to make your text nice and clean and readable. so if u did something like checking if a number is like odd or even or something that involves if statements or else statements, you put it in a method then call on that so your "main method (am i using the correct terminology)" is readable and cool.

also, do all methods u make need to be after the main method? can it be before the main method like you have something called checkEvenOrOdd() before the main method, then in the main method u call on that. is that wrong ? thx bros


r/learnjava • • Oct 10 '16

I'm taking AP Computer Science, and LOVE Java, LOVE how you can create programs with just numbers + letters, but I'm TERRIBLE at answering problems in labs that we do, any sites/books that would help?

0 Upvotes

I basically am struggling with putting the code that I learned, the pure basic textbook definition onto eclipse and make it work. We aren't even that far, only to the point where we've learned about operators, for and while loops, yet I can't answer the problems or succesfully modify the code to answer the question in labs we do in class.

For all the experienced Java programmers, how did you learn, our textbook is seriously bland and gives bad examples on how certain blocks of code work. Any good sites or books you might recommend me? I know that practice will help, but its more of me not being able to successfully learn the basics. Applying what I've learned is also a struggle.


r/learnjava • • Sep 28 '26

Where to begin as a Rust Dev?

0 Upvotes

I've been coding in Rust for a while now, and I'm quite advanced in it. I mainly want to learn Java so I can make MC mods & plugins. Is the MOOC course good?


r/learnjava • • Aug 28 '25

I don't understand this shit

3 Upvotes

I am a complete beginner to the java.

So i am listening to a playlist of java In yt.

Until now he said like int a =10; a is reference variable (stored in stack), 10 is object (stored in heap).

Now he is saying primitives are stored in stack and call string as object. Can you pls explain me this 😭