Palindrome Program In Java Tutorial #63

preview_player
Показать описание

This palindrome program in java and explanation will help you get working code! ✅Hopefully, what I've taught you will help you with your palindrome java program.

A palindrome is a word or phrase that is the same reversed, as it is originally:

mom
dad
race car

If you reverse each of these (and exclude spaces) then they will spell the same word. In this palindrome java program, we will use a for loop to get each character from the word, and then use another for loop to compare each reversed character to the original to determine if the String is indeed a palindrome.

This palindrome java code can be tricky at first... But SURELY you'll get it :) If you followed along, congrats! You learned-by-doing!

I hope you enjoyed this palindrome program in java tutorial! I like to have a nice mix of tutorials and actual projects for you all :)

Was this able to help you find palindromes in java?

Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.

~

Alex Lee
Рекомендации по теме
Комментарии
Автор

Hey Alex, I rarely leave comments but I have to say your tutorials are the easiest and coolest way to learn Java! Thank you so much for making these videos. It really helps me a lot to actually gain more interest in programming and not to give up! I love how you make hard things look simple and clear and that really motivates me to keep on going! I also agree on all the comments below that you are amazing! Thanks again!

kangdysalltag
Автор

Bro honestly you are my go to now you explain things at my level of understanding thanks!

steveejoel
Автор

Thanks for all these vids!
I just started learning java and your tutorials are the best out here

lionson
Автор

I just started learning Java a few months ago and I LOVE your tutorials! They explain things so well and you're right, some people learn better by seeing! I just spent 30 min working with how to create a palindrome method online--I took a break and said, let's give videos a try. SO. MUCH. BETTER! Thanks 🙂

thatChillLife
Автор

Good video, maybe in the future you could make a video on program that generates every permutation of an array, i had problems with is lately so i would love to see you explaining it.

sospylon
Автор

I've been learning programming since 2019 and gave up in 2020. Now I'm back and found this channel a while ago, it goes so much better and faster since that. Thank you, Alex, you're amazing!

CssSpyxed
Автор

Hi Alex whats upp
Though I am a student but still watch your content
Lots of support from india

shauryagaur
Автор

You helped me a lot! Thanks Alex, you do a very good job!

veronicadanu
Автор

Thank you, this is very helpful for interviews! very nicely explained!

lathasridhar
Автор

Great work . Explained every step of the way !! Extremely appreciate it

ramonsanchez
Автор

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

maelstrom
Автор

U deserve more attention, and many more subscribers! YouTube should pay you more!

RicJiang
Автор

you are the best alex please keep up the great work !

soniafaizabenchebana
Автор

at the boolean part, why its says "Unreachable code" how do i fix that?

ChristianAllertse
Автор

Wth i understood this so quick man I'm starting from the basics now

kil
Автор

Thank you for the amazing vids Alex, they help a lot.

nerodant
Автор

When you have the reverse string can’t we just do equals to check the original and reverse to make the decision on if palindrome true or not

Tuxedo-Twins
Автор

bro Alex u should never stop teaching us JAVA

justinyao
Автор

YOur videos are great really helping me through college ♥ thanks ALEX

peppermintdior
Автор

So well explained, helped me a lot understanding each statement!

muhammadnusrum