r/JavaProgramming • u/MetalHead7989 • Oct 09 '25
r/JavaProgramming • u/Defiant_Vanilla_4080 • 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.
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 • u/Legitimate-Piece-687 • Aug 26 '24
Help me !
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 • u/hippna_ • Aug 15 '24
To Find Palindrome Words in a Sentence | JAVA | Easy and Simple | Brute Force
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 • u/arshikajtp • Jul 12 '24
Example of Printing Java Array using the "for-each" Loop
r/JavaProgramming • u/arshikajtp • Aug 27 '24
Comparing Java String By By Using == operator
r/JavaProgramming • u/MiserableBoss • Jul 18 '21
Simple login implementation guide
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 • u/arshikajtp • Apr 09 '24
10 Common Mistakes to avoid while Java Learning
r/JavaProgramming • u/Asleep_Beyond1371 • Dec 06 '24
A simple tutorial for implementing SAML SSO using Java + Spring Boot + SSOReady
r/JavaProgramming • u/Aadhil_Ahamed • Dec 06 '24
MySQL Connector J/Java Vulnerability
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 • u/Big_Bailey420 • Dec 06 '24
Pacman
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 • u/Neither-Tune2191 • Dec 04 '24
ISO Java Programmer to Interview
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 • u/No_Razzmatazz3945 • Jan 12 '25
Where to learn JavaScript (Begineer) ?
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 • u/Present-Ad-1365 • Jan 11 '25
š„ We Made Excel Fly in Java ā Our Excel Reader Processed 10 Million Entities in 12s!
r/JavaProgramming • u/arshikajtp • Jul 10 '24
Example of Printing Java Array using the "for" Loop
r/JavaProgramming • u/Ajmalyousufza • Apr 28 '18
IF YOU INTEREST IN PROGRAMMING?????
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 • u/lar_coding • Sep 30 '24
Help with writing to file
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 • u/Confident_Ad_5889 • Oct 20 '24
Why did they remove the āreadLineā command in Java
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 • u/Interesting_Part_755 • Oct 06 '24
I want to start java
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 • u/bear007 • Sep 22 '24