r/JavaProgramming • • Oct 09 '25

First Java Project, trying to learn Java

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • Aug 08 '25

Why can I have a local method with the same Identifier as the Instance variable, when "scope" of a variable should hinder it.

1 Upvotes

lets say this is a class

public class Test {

int x; //Instance variable

public void change(int x) { //local (declared) variable through parameter

}

}

this whole code leads to no error

But in my head the code above is the same as:

public class Test2 {

int x;

int x;

}

which leads to error


r/JavaProgramming • • Aug 26 '24

Help me !

1 Upvotes

I have learned core Java. I'm now practising leet code and hackerank problems.It's been 8 years since I graduated.I desperately need a job now.How can I approach startups in and around Chennai, Bangalore and Coimbatore? What are the other things that I should learn to get into an entry level job in software development/web


r/JavaProgramming • • Aug 15 '24

To Find Palindrome Words in a Sentence | JAVA | Easy and Simple | Brute Force

0 Upvotes
public static void main(String[] args) {
    Scanner input =new Scanner(System.
in
);
    System.
out
.println("----Welcome to find palindrome word in a sentence----");
    System.
out
.print("Enter your sentence: ");
    String word = input.nextLine();
    int len = word.length();

    String[] myArr = word.split(" ");
    int n = myArr.length;

    // Removing the last character i.e, '!','.','?',  etc.
    String last = myArr[n-1];
    myArr[n-1] = last.substring(0 , last.length()-1);


    for (int i = 0; i < myArr.length; i++) {

        if(
isPalindrome
(myArr[i])){
            System.
out
.println(myArr[i]+" ");
        }
    }

}

public static boolean isPalindrome(String word){
    String rev = "";
    for (int i = 0; i < word.length(); i++) {
        rev = word.charAt(i) + rev;
    }
    if (rev.equalsIgnoreCase(word)){
        return true;
    }
    return false;
}

r/JavaProgramming • • Jul 12 '24

Example of Printing Java Array using the "for-each" Loop

Post image
0 Upvotes

r/JavaProgramming • • Aug 27 '24

Comparing Java String By By Using == operator

Post image
1 Upvotes

r/JavaProgramming • • Jul 18 '21

Simple login implementation guide

1 Upvotes

Hi all,

I am learning spring boot. I have followed few tutorials, and I was able to implement simple rest app.

Now I am learning user authentication and login. Can someone guide me to implement simple and secured practice?

Good tutorials are also welcome. šŸ™‚

Thanks!!


r/JavaProgramming • • May 16 '24

Java OOPs Concept-Polymorphism

Post image
1 Upvotes

r/JavaProgramming • • Apr 09 '24

10 Common Mistakes to avoid while Java Learning

Thumbnail
medium.com
1 Upvotes

r/JavaProgramming • • Apr 06 '24

Uses of Java

Thumbnail
medium.com
1 Upvotes

r/JavaProgramming • • Dec 06 '24

A simple tutorial for implementing SAML SSO using Java + Spring Boot + SSOReady

Thumbnail
github.com
1 Upvotes

r/JavaProgramming • • Dec 06 '24

MySQL Connector J/Java Vulnerability

1 Upvotes

Today I received an email from GitHub about that some of my repositories are in danger because of the MySQL Connector J/Java problem. What's that? How can I make safe the things?


r/JavaProgramming • • Dec 06 '24

Pacman

0 Upvotes

Hello all I am still learning a for a final project I have to make Pac-Man move by inputting 1 - forward, 2 - left, 3 - right and 4 - stop and any other number won’t work. Can anyone give me any pointers by using while or if statements or something. Thnaks


r/JavaProgramming • • Dec 04 '24

ISO Java Programmer to Interview

1 Upvotes

I’m currently a third-year college student at Penn State taking a Java course. For the final project, I am required to look for a Java programmer to interview. It must include the following:

The questions that I need answered include the Programmer’s name, the company the programmer works for, the training that the programmer took in programming, what the programmer like best about your job, what needs improvement in their job.

If anyone could point me in the right direction, that would be greatly appreciated!


r/JavaProgramming • • Jan 12 '25

Where to learn JavaScript (Begineer) ?

1 Upvotes

I'm about to join my college for CSE programme and I want to learn javascript, so which will be the best resource for me to learn java, I need both paid and free class and resources.


r/JavaProgramming • • Jan 11 '25

šŸ”„ We Made Excel Fly in Java — Our Excel Reader Processed 10 Million Entities in 12s!

Thumbnail
medium.com
1 Upvotes

r/JavaProgramming • • Jul 10 '24

Example of Printing Java Array using the "for" Loop

Post image
1 Upvotes

r/JavaProgramming • • Jul 02 '24

Java String to float Example

Post image
1 Upvotes

r/JavaProgramming • • Apr 28 '18

IF YOU INTEREST IN PROGRAMMING?????

0 Upvotes

Programming is very very important thing now all over the world

Because every software and application are borned within the hands of a programmer

An programmer can do many goodthings for his society through his programmes

Now a days programming is a weakness of some guys

They generate from their imaginations to originality

Java is an best programming language Do you promise????


r/JavaProgramming • • Sep 30 '24

Help with writing to file

Post image
1 Upvotes

Hi everybody. I wanted to ask of anyone can help me with this. When a donor presses the donate button, it has to take the foundreceivers childID and add it ro the specific donor in the text file separated by a #. The code I've written does not update it. Any suggestions?


r/JavaProgramming • • Oct 04 '24

Example of Java String substring() Method

Post image
1 Upvotes

r/JavaProgramming • • Oct 20 '24

Why did they remove the ā€œreadLineā€ command in Java

1 Upvotes

So I’m trying to make a non-graphic game with my friend for school. One day I come in and my code is giving me errors about the symbol not found. It was my command to take user input, but why was it giving me an error. My code was ā€œString users_command=readLine(ā€œWhat do you want to do? ā€). I had tested it the day before so why was I getting an error from it? Turns out Java had a new update that removed this command now I’m at a loss as all other options I could find for user input doesn’t seem to work with the if statement. It always returns false even if it true. So why did they remove the command?


r/JavaProgramming • • Oct 06 '24

I want to start java

1 Upvotes

Can u please share a yt playlist from beginning to end and also how to start dsa in java. I m beginning in dsa. Please share i have 6 months for learning a language and interview preparation


r/JavaProgramming • • Sep 22 '24

ā˜•ļø Did You Know You Can Code in Java with VSCode?

Thumbnail
tomaszs2.medium.com
1 Upvotes