r/JavaProgramming • • 8h ago

How do one start learning Spring Boot in 2026?

Thumbnail
reddit.com
2 Upvotes

r/JavaProgramming • • 4h ago

6 Udemy Courses That Will Help You Ace Coding Interviews in 2027

Thumbnail
reactjava.substack.com
1 Upvotes

r/JavaProgramming • • 9h ago

Backend engineering

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 11h ago

Al Eng prep in Python: Should I do DSA in Python or switch to Java for placements

1 Upvotes

Hey everyone,

I’m currently learning Python because my main goal is to get into AI Engineering. However, with campus placements coming up, I know I need to focus heavily on DSA and problem-solving to clear the coding rounds.

I’m stuck on one major decision and want some real-world advice from people who have been through placements:

• Option 1: Stick to Python for both DSA and AI Engineering so I only have to focus on one language.

• Option 2: Learn Java specifically for DSA (since many say it builds stronger fundamentals and is preferred in campus placements) while keeping Python strictly for AI/ML.

For those working in AI/ML or who recently sat for placements, is doing DSA in Python completely fine for online assessments and interviews? Or is learning Java for DSA actually worth the extra effort?

Would love to hear your honest thoughts and experiences


r/JavaProgramming • • 13h ago

10 Best Books for Data Structure and Algorithms for Beginners in Java, C/C++, and Python

Thumbnail
medium.com
1 Upvotes

r/JavaProgramming • • 1d ago

[Hiring] Part-time backend engineer | Java | Remote

26 Upvotes

Turn real backend problems into coding exercises. Write a reference solution and tests for each one, including edge cases. The role is remote, around 15 flexible hours a week. Experience building Java APIs or services is a good fit.

Interested? Email [email protected] with “Backend Java” in the subject and a sentence about a Java service you built and how you tested it.


r/JavaProgramming • • 1d ago

Can we generate PDFs in Java without Headless Chrome or native dependencies?

Thumbnail reddit.com
2 Upvotes

r/JavaProgramming • • 1d ago

java-agent-loader (JAL) v3.0.0 – now works with plain lsp-mode and built-in eglot – Looking for testers

Thumbnail
reddit.com
1 Upvotes

r/JavaProgramming • • 1d ago

If you don't have a (Java) security process, you are negligent...

Thumbnail
reddit.com
3 Upvotes

r/JavaProgramming • • 1d ago

LTM Technical Interview

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 1d ago

3 Best Free System Design Interview Books, Courses, and PDFs in 2026

Thumbnail
medium.com
1 Upvotes

r/JavaProgramming • • 1d ago

Un paquete completo de PDFs en 100% JavaFX, en mi propio motor

Thumbnail gallery
4 Upvotes

r/JavaProgramming • • 2d ago

Is learning DSA in Java harder than Python? Read body

17 Upvotes

I know this is most asked question but I'm 4th year btech and I want to start dsa and confused to start with which program .

Some saying u can write complex topics code easily in python and others are saying java give job opportunities more .


r/JavaProgramming • • 2d ago

ArchUnitJava 1.0: architecture policies over compiled code, with evidence for CI

4 Upvotes

“This package must not depend on persistence” is more useful as a failing test than a review reminder.

I work on ArchUnitJava. Version 1.0 is published on Maven Central:

`io.github.tristankruse:archunitjava:1.0.0`.

- Reads class directories and JARs without initializing the target classes.

- Checks dependency and cycle policies, with structured evidence behind failures.

- Runs through JUnit and can emit JSON, SARIF or JUnit XML for CI.

It requires DK 25 to run; compile the target before analyzing it. This is an independently

implemented project, not the original ArchUnit, not affiliated with it, and not a drop-in replacement.

[Source, quickstart and release record](https://github.com/dragonsec-ai/ArchUnitJava)

Writing assisted by AI.


r/JavaProgramming • • 2d ago

Can anyone tell me why its throwing an error 'while' expected?

3 Upvotes

so currently I am trying to learn java and I'm trying to encase everything in a do while loop. but then when I try to do so, it throws an error 'while' expected. Even though I have put in a "while" condition I've put the "do" code in curly brackets. but then when I go to type in the do condition it throws a code at me!? I have no clue what I'm doing wrong!

Not to mention, it keeps telling me my "continue" statement is outside of a loop. The compiler knows both curly brackets for the "do while" loop are valid but it still thinks that the "do" statement is missing a "while" condition.

import java.util.Random;
import java.util.Scanner;

public class main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.
in
);
        Random random = new Random();
        String[] choices = {"rock", "paper", "scissors",
                "rock", "paper", "scissors",
                "rock", "paper", "scissors", "gun"};
        String playerChoice;
        String computerChoice;
        String playAgain = "yes";
        int misFire = random.nextInt();
        do() {
            System.
out
.print("Enter your move:");
            playerChoice = scanner.nextLine().toLowerCase();
            if (!playerChoice.equals("rock") &&
                    !playerChoice.equals("paper") &&
                    !playerChoice.equals("scissors") &&
                    !playerChoice.equals("gun")) {
                System.
out
.println("invalid Choice");
                continue;
            }
            computerChoice = choices[random.nextInt(10)];
            System.
out
.println(computerChoice);
            if (playerChoice.equals(computerChoice)) {
                System.
out
.println("It's a tie");
                //player wins
            } else if (playerChoice.equals("rock") && computerChoice.equals("scissors")) {
                System.
out
.println("You Win!");
            } else if (playerChoice.equals("scissors") && computerChoice.equals("paper")) {
                System.
out
.println("You Win!");
            } else if (playerChoice.equals("paper") && computerChoice.equals("rock")) {
                System.
out
.println("You Win!");
                // computer wins
            } else if (computerChoice.equals("rock") && playerChoice.equals("scissors")) {
                System.
out
.println("You. Get. Nothing. You lose, good day sir!");
            } else if (computerChoice.equals("scissors") && playerChoice.equals("paper")) {
                System.
out
.println("You. Get. Nothing. You lose, good day sir!");
            } else if (computerChoice.equals("paper") && playerChoice.equals("rock")) {
                System.
out
.println("You. Get. Nothing. You lose, good day sir!");
                //gun
            } else if (playerChoice.equals("gun") && misFire == 3) {
                System.
out
.println("You Win!");
            } else if (computerChoice.equals("gun") && misFire == 3) {
                System.
out
.println("You. Get. Nothing. You lose, good day sir!");
            } else if (computerChoice.equals("gun") && misFire <= 0 || misFire >= 4) {
                System.
out
.println("You Win!");
            } else if (playerChoice.equals("gun") && misFire <= 0 || misFire >= 4) {
                System.
out
.println("You. Get. Nothing. You lose, good day sir!");
            }
        }while (playAgain.equals("yes"))
        scanner.close();
    }
}

r/JavaProgramming • • 2d ago

DSA Finally Clicked When I Learned These 14 Patterns

Thumbnail
javarevisited.substack.com
3 Upvotes

r/JavaProgramming • • 2d ago

new program (I'd like some help with it, if possible) c:

3 Upvotes

This is the program. I built it off of a couple for loops and some array tinkering Although, it is working properly, I'd like to be able to type the suit of the card along with the number. AI has helped me a little bit, but the idea of how the cards are displayed in the array is my idea.

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;

public class Main {
public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);

// creation of the deck

ArrayList<String> deck = new ArrayList<>();

String[] suits = {"Hearts", "Diamonds", "Clubs", "Spades"};
String[] ranks = {
"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"
};

//Generation of the 52 cards

for (int i = 0; i < suits.length; i++) {
for (int j = 0; j < ranks.length; j++) {
deck.add(ranks[j] + " of " + suits[i]);

}
}

// Shuffle the deck

Collections.shuffle(deck);

// creaation of the card grid

//2D array

String[][] cards = new String[3][3];
String table[][] = {

{"?", "?", "?"},
{"?", "?", "?"},
{"?", "?", "?"}};
boolean[][] drawn = new boolean[3][3];

// Place 9 random cards into the grid
int cardIndex = 0;

for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
cards[i][j] = deck.get(cardIndex);
cardIndex++;

}
}
int totalDraws = 0;
System.out.print("=== DRAW A CARD GAME ===");

// Game Loop
while (totalDraws < 9) {
System.out.println("\nYour card table:");

//Display the table\
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
System.out.print(table[i][j] + "\t");
}
System.out.println();
}
System.out.print("\nChoose a card (1-9 and put the suit)");

int choice = scanner.nextInt();

// Validate choice

if (choice < 1 || choice > 9) {
System.out.println("Choose a number between 1 nd 9!");
}
// Convert choice into row and column

int row = (choice - 1) / 3;
int column = (choice - 1) % 3;

// Check if card was already drawn

if (drawn[row][column]) {
System.out.println("You already drew that card!");
continue;
}
// Reveal the card
table[row][column] = cards[row][column];

drawn[row][column] = true;

totalDraws++;

System.out.println("You drew: " + cards[row][column]);
}
System.out.println("\n===== Game Over ======");
System.out.println(("You drew all 9 cards"));

scanner.close();
}
}

Original code looks a little bit like this; there was some more to it, but that's the jist of it.

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        String[][] twoDarray = {
                {"x", "x", "x"},
                {"x", "x", "x"},
                {"x", "x", "x"}
        };

        Scanner scanner = new Scanner(System.
in
);

        System.
out
.print("Enter something: ");
        String userinput = scanner.nextLine();

        twoDarray[0][0] = userinput;

        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                System.
out
.print(twoDarray[i][j] + "  ");
            }

            System.
out
.println();
        }

        scanner.close();
    }
}

r/JavaProgramming • • 2d ago

been learning on mooc.fi, is so far on part 2 of Java 1, is there a better way for this?

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 3d ago

How to remember the java and revise in 1 month

Thumbnail reddit.com
2 Upvotes

Tell the tips guys, it helps me.


r/JavaProgramming • • 3d ago

Update Java Love Code

Thumbnail
chatgpt.com
1 Upvotes

love.java

what aspects lack in the code?