Am wondering how a wonderful tutorial as this does not have much views as other instructors or even much more , in my opinion you are the best around on youtube and I will recommend this tutorial to anyone who wants to learn java .
is video me 2 concept clear hogaye 1st- How to reverse numbers. 2nd- Palindrome or not thank you so much sir please meetup ke baare me sochiye i really want to meet you.
Been struggling for days trying to get my head around this and after copious java tutorials, I found yours. You've broken it down perfectly for me. Thank you 🙏
You're such a wonderful teacher sir. Not everyone can explain the logic so perfectly the way you are doing. I am so grateful for all your lessons. Thank you.
You are one of the best java teacher i have ever seen.Such a tough concept you just explain in ease.Even my school teacher wont teach like you.Thank you for teaching me this.
i want to print the palindrome number from the user whether it is not a palindrome number convert it until it is a palindrome and print that nimber. i/o:123 if we reverse this number 321 and add the first input number to this (123+321=444) ex2:195 its palindrome is 9339 i need the program for this problem
Sir..doubt sir...what if the number is 9780 ...in reversing the 0 will not get in front and output will be 879 instead we want 0879.. Kindly clarify my doubt sir
@@madhavichukka1732 class First { public static void main(String nag[]) { int n = 121, r = 0, s = 0; int t = 0; while (n > 0) { r = r % 10; n = n / 10; s = s * 10 + r; } if (t == s) { System.out.println("palindrome"); } else { System.out.println("not"); } } }
for anyone who's looking for the code import java.util.Scanner; public class Palindrome { public static void main(String[] args) { int s=0,r,t; Scanner sc=new Scanner(System.in); System.out.println("Enter any no."); int n=sc.nextInt(); t=n; while(n>0) { r=n%10; n=n/10; s=s*10+r; } if(t==s) System.out.println("palindrome"); else System.out.println("not palindrome"); } }
sir i have typed this code but it is just showing only enter any number but after taking input and pressing enter it is not showing the result .. package programs; import java.util.Scanner; public class Palindrom { public static void main(String[] args) { // TODO Auto-generated method stub int n; int rem; int sum=0; Scanner sc=new Scanner(System.in); System.out.println("Enter any number:"); n=sc.nextInt(); int t=n; while(n>=0) { rem=n%10; n=n/10; sum=sum*10+rem; } if(sum==t) { System.out.println("number is palindrom"); } else { System.out.println("not palindrom"); }
in maths (1/10=0 is for Quotient and r= 1 is for remainder ) ...when n=1 its gets divided by 10 ..as he mentioned the Quotient part is n so n=0 and r =1 which is remainder. Hope i could help you , i am 0 in java learning from Navin Sir :-)
in case anyone need the code: all the best public static void main(String[] args) { int n = 125; int r; int s = 0; int t = n; while (n>0) { r = n%10; n= n /10; s= s*10+r; } if (t==s) { System.out.println("its palindrome");} else { System.out.println("its not palindrome"); } } }
while the entry comes from user :: public static void main(String[] args) { Scanner sc = new Scanner (System.in); System.out.println("enter your number"); int n = sc.nextInt(); int r; int s = 0; int t = n; while (n>0) { r = n%10; n= n /10; s= s*10+r; } if (t==s) { System.out.println("its palindrome");} else { System.out.println("its not palindrome"); } } }
int i,j,k; Scanner sc = new Scanner(System.in); System.out.println("Insert a three digit numbers differently in different lines to check whether it is a pallindrome."); i = sc.nextInt(); j = sc.nextInt(); k = sc.nextInt(); int l=i+j+k; System.out.println(l); int m = i/100; int n = j/10; int o = k; int p = (o*100)+(n*10)+(m); System.out.println(p); if(l==p) System.out.println("The given no. is Pallindrome."); else System.out.println("The given no. is not a Pallindrome");
Watching this in 2023 , that was a fabulous explanation man !
Thanks 👍
Watching it in October of 2021, Yet no one has ever made it so clear to us Sir.
Thank You ❤
Am wondering how a wonderful tutorial as this does not have much views as other instructors or even much more , in my opinion you are the best around on youtube and I will recommend this tutorial to anyone who wants to learn java .
+Ehab Elsaid Thank u :)
I guess Im kinda randomly asking but does anybody know a good site to stream newly released series online ?
And look I am still using your tutorials in 2019. Thanks for amazing lessons.
Iam using in 2022 hah
2022
@@harshveerthakur7629 and am in 2023😅
is video me 2 concept clear hogaye
1st- How to reverse numbers.
2nd- Palindrome or not
thank you so much sir
please meetup ke baare me sochiye i really want to meet you.
Been struggling for days trying to get my head around this and after copious java tutorials, I found yours. You've broken it down perfectly for me. Thank you 🙏
Sir , you are one of the " BEST " teacher in the world !
thank you very much Sir.
We appreciate your efforts !
The only video of yours that went above my head
I'm surprised that how a 2014 video is helping me to prepare for my ISC boards in 2021, amazingly explained.
You're such a wonderful teacher sir. Not everyone can explain the logic so perfectly the way you are doing. I am so grateful for all your lessons. Thank you.
just a quick note, the code has a bug, and it's better to say while(number != 0), what a great explanation, THE BEST. thank you
ONE OF THE BEST U R MIND BLOWING I NEVER UNDERSTOOD THE CONCEPT OF PALINDROME BUT AFTER WATCHING TO YOUR VIDEO I UNDERSTAND THANK U SO MUCH :)
You are one of the best java teacher i have ever seen.Such a tough concept you just explain in ease.Even my school teacher wont teach like you.Thank you for teaching me this.
2022 I am using this Playlist... Thanks a lot 🔥🔥
nice concept sir, good explanation, keep it up 👍👍
now iam cleared the many concepts.Thank you sir..Your teaching is really Gud.
Your lectures are best, way of explanation is awesome
i want to print the palindrome number from the user whether it is not a palindrome number convert it until it is a palindrome and print that nimber.
i/o:123 if we reverse this number 321 and add the first input number to this (123+321=444)
ex2:195 its palindrome is 9339 i need the program for this problem
broo ur awsumm..love ur teaching..chala telsukunna me nunchi...
very useful to learn for the beginners and your teaching concept is soo good to understand hats off sir.
//palindrome using forloop
class Palindrome{
public static void main(String[] args){
int n=123,r,s=0;
int t=n;
for(int i=n;i>0;i=i/10){
r=n%10;
s=s*10+r;
n=n/10;
}
if(t==n){
System.out.println("palindrome");
}
else{
System.out.println("not palindrome");
}
}
}
Awesome video. Understood everything. Thank you sir 😀
Wow, very clear and amazing explanation. Thank you Mr.
Thank you soo much for the clear cut data sir
Man you rocked it.
I love your videos.
Thanks a bunch . The best explanation ever❤
nice videos..once we will watch this videos we will be expert on that topic..............Thank you sir....
Amazingly explained. Thanks Navin
Thank you Telusko. Your tutorial has been extremely helpful.
navin you are a great tutor
u r great sir in teaching java. Your tutorials are amazing
very well explained thank you so much
the way teaching is excellent
How write a palindrome code for two strings in java ?please any one explain me
Navin should be selected as the best java tutor
Wish I met you earlier on my college days :D
Sir can u make how to reverse a string? thank you!
What will be the code:
If I want to print reverse number and the also wants to print it's palindrome or not???
Sir..doubt sir...what if the number is 9780 ...in reversing the 0 will not get in front and output will be 879 instead we want 0879.. Kindly clarify my doubt sir
you are awesome than my teacher
Awesome explanation sir..hats off u
You are master in Java!!!
Sir I m satisfied by yr teaching n yes I understood the concept of palindrome....thnku so much
Where is the program for palindrome sir
@@madhavichukka1732 class First {
public static void main(String nag[]) {
int n = 121, r = 0, s = 0;
int t = 0;
while (n > 0) {
r = r % 10;
n = n / 10;
s = s * 10 + r;
}
if (t == s) {
System.out.println("palindrome");
} else {
System.out.println("not");
}
}
}
Hey Navin,
But this code fails when input number is having 0's at end (i.e.14900)
Condition should be (n !=0)
Best explanation
Amazing logic and teaching
God Bless You and all of us
Tq sir ur concept will be very clearly understood
Really nice explanation, thanks for helping me understand this problem.
problem solving explanation is awesome
Wah wat a explanation sir handoff for uh
Thank you sir for help ❤️❤️
Where is the link for palindrome program sir
Sir, U r great tutor.
Great explanation sir.Thank you..
I m beginer here.......how the system will come to know that n=12 in second step?
I wasted money on college😔
Bruh same, and on tution too
Great explanation!
thanks a lot sir
the concepts u explained r very clear now
Thank you Very Much Sir 2. I'll easily understand your teaching..
How to reverse a number ending with zero sir ..and thank u for amazing lesson
Excellent explain.....
plz upload the video for star pattern program sir.
sir please make a video on string palindrome or not
for anyone who's looking for the code
import java.util.Scanner;
public class Palindrome
{
public static void main(String[] args)
{
int s=0,r,t;
Scanner sc=new Scanner(System.in);
System.out.println("Enter any no.");
int n=sc.nextInt();
t=n;
while(n>0)
{
r=n%10;
n=n/10;
s=s*10+r;
}
if(t==s)
System.out.println("palindrome");
else
System.out.println("not palindrome");
}
}
you made programming easy.....:)
Sir, You are AWESOME!
A getting error sir can u plzz help me to solve
Great Explanation
sir i have typed this code but it is just showing only enter any number but after taking input and pressing enter it is not showing the result ..
package programs;
import java.util.Scanner;
public class Palindrom {
public static void main(String[] args) {
// TODO Auto-generated method stub
int n;
int rem;
int sum=0;
Scanner sc=new Scanner(System.in);
System.out.println("Enter any number:");
n=sc.nextInt();
int t=n;
while(n>=0)
{
rem=n%10;
n=n/10;
sum=sum*10+rem;
}
if(sum==t)
{
System.out.println("number is palindrom");
}
else {
System.out.println("not palindrom");
}
}
}
check the while statement while(n>0) is correct to get the output....
how n=0 and r=1.Plaese explain sir.
in maths (1/10=0 is for Quotient and r= 1 is for remainder ) ...when n=1 its gets divided by 10 ..as he mentioned the Quotient part is n so n=0 and r =1 which is remainder.
Hope i could help you , i am 0 in java learning from Navin Sir :-)
Amazing sir .. thank you Soo much sir
The code is not running, actually it just keep running, nothing is showing up
Indians rule the world of programming
How we get 1%10= 1 as a remainder????
yes
u made it easy man
nice one sir
you are simply awesome....
super anna excellent
in case anyone need the code: all the best
public static void main(String[] args) {
int n = 125;
int r;
int s = 0;
int t = n;
while (n>0) {
r = n%10;
n= n /10;
s= s*10+r;
}
if (t==s) {
System.out.println("its palindrome");}
else {
System.out.println("its not palindrome");
}
}
}
while the entry comes from user ::
public static void main(String[] args) {
Scanner sc = new Scanner (System.in);
System.out.println("enter your number");
int n = sc.nextInt();
int r;
int s = 0;
int t = n;
while (n>0) {
r = n%10;
n= n /10;
s= s*10+r;
}
if (t==s) {
System.out.println("its palindrome");}
else {
System.out.println("its not palindrome");
} }
}
You are awesome
I have a query sir, Why cant we use FOR loop instead of while?
Because for loop requires 3 values whereas we only need 1.
I learned a lot.
very helpful
Nice sir
good sir
what a freakin starrr
No i.. Uhu.. We fedup with i...
Awesome
thankyou sir
If your here right now I need your help!!
thanks vro
ty......sir
you rock!!
but u still awesome
real strugle watching it in 2023 of 30 jan
Hi
watching this in 2024
👏👏👏👏👏🙏🙏❤❤❤
int i,j,k;
Scanner sc = new Scanner(System.in);
System.out.println("Insert a three digit numbers differently in different lines
to check whether it is a pallindrome.");
i = sc.nextInt();
j = sc.nextInt();
k = sc.nextInt();
int l=i+j+k;
System.out.println(l);
int m = i/100;
int n = j/10;
int o = k;
int p = (o*100)+(n*10)+(m);
System.out.println(p);
if(l==p)
System.out.println("The given no. is Pallindrome.");
else
System.out.println("The given no. is not a Pallindrome");
❤