r/learnjava • u/[deleted] • Apr 23 '26
Does java have extension libs?
Does java have extension libs like python does? Does it have it's own version of nupy and what does import utils do other than user input
r/learnjava • u/[deleted] • Apr 23 '26
Does java have extension libs like python does? Does it have it's own version of nupy and what does import utils do other than user input
r/learnjava • u/Mmarocks93 • Dec 10 '19
I am willing to put in 20 hours a week coding I want to be able to have enough knowledge to get a job as an entry level Java developer.
I also hope to complete at least 1 or 2 major projects.
I already have experience with SQL coding and HTML and CSS.
Edit: I dont think I have clarified enough about my background. I am a 25 SAP ABAP Programmer with 2 years of experience. I have already worked on basic for,while do loops and cases along with if statements, I have also worked with basic string manipulation techniques and data types along with various SQL Selection techniques.
I also know what objects classes interfaces etc are in theory but have never gotten the chance to work with them.
r/learnjava • u/Super_Good9981 • Feb 25 '24
System.out.print("40: ");
int age = scanner.nextInt();
if (age < 0 || age > 120) {
System.out.println("Invalid age");
} else if (age <= 12) {
System.out.println("Child");
} else if (age <= 19) {
System.out.println("Teenager");
} else if (age <= 64) {
System.out.println("Adult");
} else {
System.out.println("Senior Citizen");
}
I wanted to print a specific result but it wasn't coming up, what errors am i making
r/learnjava • u/TrainTrue210 • Nov 26 '24
Bro java is literally the hardest thing it is also the first code language that i’ve ever learn please help me out am stuck with the java basic and wanna give up so badly
r/learnjava • u/TaxRevolutionary3128 • Dec 01 '25
Hi Everyone,
I have started learning Java Fullstack development. Just wanted to know if the Industry is still using Eclipse as an IDE? Because Google has stopped it's support for eclipse regarding some android development.
So should I go with eclipse or choose Visual Studio Code instead?
Need an answer from Industry experts please.
r/learnjava • u/Defiant_Vanilla_4080 • Nov 05 '24
It always bothers me to understand the syntax for creating an instance of a class (object).
Its "classname var = new classname();"
Why isnt it just
- var = new classname();
or
- new var = classname();
I mean the name of the class is already statet. Why repeat it? Seems so redundant.
r/learnjava • u/Upper_Secret_1563 • Jul 22 '24
I want to learn Java but don't have much knowledge about coding please suggest me some way out on.... how and from where should I start also do suggest some good free beginner friendly resources
r/learnjava • u/NARUTOTHEKINGG • Nov 22 '22
My Question do java have career opportunities and the reason i m asking this question because I have done various courses on java and have pretty good hold on its concepts but havent able to find job in thus field whereas i have done only two months training for php and got job offer for php
r/learnjava • u/boana12 • Dec 16 '25
I managed to lose all my Core Java notes. Completely gone. My brain is also empty.
Looking for simple, human-written notes, not textbook essays or “industry-level” nonsense. Just normal explanations that actually make sense.
Stuff like OOP, classes/objects, inheritance, exceptions, collections, basics of threads, explained like you’re helping a struggling student, not training a CEO.
Docs, PDFs, handwritten pics, GitHub I’ll take anything at this point.
r/learnjava • u/No-Camera-8530 • Apr 13 '25
Hi everyone,
I’m currently working in Singapore in a non-IT job (construction), but I’m passionate about becoming a Java Developer. I have basic knowledge of Core Java and Oracle database. My salary is very low, so I can’t afford paid courses or bootcamps.
I’m looking for any kind of free support, mentorship, or beginner project ideas I can work on. I’m even willing to volunteer or assist someone just to learn real-world coding.
If anyone can guide me or point me to a learning path/community, it would really mean a lot.
Thanks in advance
r/learnjava • u/Interesting-Hat-7570 • Jul 11 '25
Hi everyone!
I need to read data from multiple files — one after another.
Of course, I could just load the entire contents of each file into memory as strings, but that might crash the system if the data is too large.
So I thought about reading line by line instead: read one line, process it, then move to the next. But constantly opening and closing the file for each line is inefficient and resource-heavy.
Then I decided to implement it in a different way— reading chunks of data at a time. For example, I read a block of data from the file, split it into lines, and keep those lines in memory. As I process each line, I remove it from the system. This way, I don't overload the system and still avoid frequent file I/O operations.
My question is:
Are there any existing classes, tools, or libraries that already solve this problem?
I read a bit about BufferedReader, and it seems relevant, but I'm not fully sure.
Any recommendations for efficient and easy-to-implement solutions?
Also, if there's a better approach I'm missing, I'd love to hear it.
--------------------------------------------------------------------------------------------
I should also mention that I’ve never worked with files before. To be honest, I’m not really sure which libraries are best suited for file handling.
I also don’t fully understand how expensive it is in terms of performance to open and close files frequently, or how file reading actually works under the hood.
I’d really appreciate any advice, tips, or best practices you can share.
Also, apologies if my question wasn’t asked clearly. I’m still trying to understand the problem myself, and I haven’t had enough time to dive deeply into all the details yet.
r/learnjava • u/Sandy-444 • May 30 '26
Choosing java vs .net for future (i know oops concepts)
r/learnjava • u/timunas • Aug 18 '16
Hello,
I'm looking for a part time remote job/project in order to keep working and learning more about Java programming. I have some basic skills in Java, Java-FX, HTML, PHP and MySQL, and I'm starting to get prepared to take OCAJ 8 exam. At the same time, I work as system tester for a Software defined networking project in a multinational company (For 1 year).
Anyone needs help in some projects or knows projects that need help? I'm having difficulty to understand what I should do now and I think that working in a project could be the best way to learn faster and be able to help too.
r/learnjava • u/sephirothbahamut • Aug 28 '20
Hi,
i'm writing a testing suite for an already existing jar. The making of that jar was complex to say the least (it's an eclispe plugin).
The jar itself contains both classes i have to test, and other jars which are external libraries.
I'm using jacoco to check test coverage.
Can someone tell me how can i include some specific classes/packages inside a jar to the coverage calculation and exclude other specific classes, packages, and jars inside that jar?
This is my pom:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mygid</groupId>
<artifactId>myart</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>javadaptor</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.6.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.6.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.0.SP1</version>
</dependency>
<dependency>
<groupId>it.unimi.di.adaptlab</groupId>
<artifactId>JavAdaptor</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>myjar.jar/*my jar files containing both classes to test and some other jars*/</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<argLine>-Xmx1024M ${argLine}</argLine>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.2</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<configuration>
<output>file</output>
<append>true</append>
</configuration>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<includes>
???????????
</includes>
<excludes>
???????????
</excludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>r/learnjava • u/prince-tallal • Apr 26 '20
Hi everyone I am sure this question was asked many times but I wanted to learn Java. I have never used Java and would like to learn it from scratch to have a very good understanding of the software and excel in it. Thank you in advance
r/learnjava • u/skatedc4455 • Oct 04 '18
Hello nice people, I am currently 26 years old, working as a sales manager and Recently I’ve been thinking to do a professional conversion and start learning Java.
About me: i have great self learning skills able to learn everything from the network but the thing is, i am really (but really.) bad at math.
Do you think i should get into coding (learning programming language?)
Thank you for the help and sorry for my English;)
r/learnjava • u/ornithomimic • Jun 22 '19
Was completing the MOOC sufficient to allow you to begin applying for programming jobs? Were you required, or did you voluntarily choose, to do additional projects or demonstrate additional learning before succeeding in finding a job? Has your employer been helpful/understanding of the beginning skill level you bring to the job? Ultimately, is the MOOC a good path to a programming job? Thanks to all.
r/learnjava • u/[deleted] • Jan 26 '16
Hi guys.
Pre:
A friend of mine gave me this and told me to use the console & the Scanner class.
Add together numbers until you come as close to 1.000(high&low) as possible, BUT IF two numbers are equally close to 1.000, choose the highest one.
The first number you write in to the console should be the number that tells how many numbers you will put in.
For an example.
I will put in 4 numbers in the console, (4, 900, 500, 498, 4)
If you add 500 with 498, you will get 998. That is close to 1.000,
but if you add 500 with 498 and 4, you will get 1.002.
998 & 1002 are equally close to 1.000, so then I need the program to choose the 1.002 and not the 998.
The problem I have is the Algorithm. How do I do this?
I can count every number I put together and do it while the sum are under 1.000, but then I will miss the 1.002.
I know that I can use the Math.max to compare 2 sums to see if they are equally far away from 1.000 and then choose the biggest of them.
But yes, I don't understand how you should think here.
This is what i have done right now, it just add all numbers you put in together, and as I said, the first number you write in the console will just tell the program how many numbers it will be put in.
So the question is, how do you think when it comes to this?
What goes in your head when you try to write the algorithm. You have any solution or help?
Thanks.
public class Main {
public static void main(String[] args) {
int numbers = 0, count;
Scanner scn = new Scanner(System.in);
count = scn.nextInt();
while (scn.hasNextInt()) {
numbers += scn.nextInt();
count--;
if (count == 0) {
System.out.println(numbers);
}
}
}
}r/learnjava • u/MetalGearMuffin • Jun 16 '15
Hello everyone!
I need some help, I have an interview next week with a company that offers Java traineeships. They have asked me that before I come in I send some code to show how far I've come. The problem is that I'm very uncreative with things like this. The logic part and such I am fine with. However just start coding something out of thin air and I don't know where to start or what to do.
I'm currently in college, nearing the end of my first year. I know about abstract classes and interfaces and how to implement them. A little about sorting lists alphabetically or by for example age. Other then that, I know all of the basic stuff. Like try catch blocks and all that.
Now my question is, what would be a project that I can finish within 4 days that could really show off my knowledge?
r/learnjava • u/DeathSpirit44 • Jul 29 '22
Why can't we use primitive types in collections? Autoboxing and unboxing cost times. Is there an upside for using only reference in frameworks or is it just a developer choice? Thanks
r/learnjava • u/devest__ • Aug 29 '24
hey! recently i've watched notch(creator of Minecraft) coding Minicraft(a 2D minecraft for a gamejam) i got surprised by his techniques, and id like to learn, but i cant find on the internet. the techniques im talking about are pixel by pixel rendering with arrays, bytes, binary operations, bits, databits. do u guys know where i can find these kinda stuff?
r/learnjava • u/FatherCorpseee • Sep 30 '22
So I just started the Helsinkis MOOC course and am on the problem set pertaining to scanner classes.
import java.util.Scanner;
public class Message {public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Write a message: What is your name");
// Write your program here
String message = scanner.nextLine();System.out.println("Nice to meet you " + message);
}
}
I created a section that asked the user for input and added the "Nice to meet you " part plus their name/message portion. The TMC plugin says I am incorrect. Am I missing something?
* Would like to add that the code does run properly but it isn't what the TMC plugin is asking for
r/learnjava • u/crystoll • Jun 09 '20
Hi, shameless plug of a video I did while working from home. So excuse the camera quality.
https://www.youtube.com/watch?v=bYeJ3xfwjjg
Let me know what you think. Original version was about 1 hour, I tried to get in some new fun features, but still keep it short and tight.
r/learnjava • u/Kackboy • Oct 25 '16
Hi! This is my first post on this sub. I have an assignment for my java class. I am supposed to create a rock,paper, scissors game. But not the way usually people do and the way I've seen it being done on the internet.
We should use 4 different classes. In short, one that displays the result, another that is the JButton-"rock","paper","scissors" and "new game", "finish". And the two others which i could describe more.
Im from sweden btw. If anyone wants to try to help please tell me. Otherwise ill just have to try harder :p