Finding Reverse of a Number | Java | Detailed Explanation

  Рет қаралды 47,145

B Tech Computer Science

B Tech Computer Science

3 жыл бұрын

#Java #CoreJava #Collections #javaForBeginners Check out my Anime Store - bit.ly/3rXvlqk
Subscribe to my channel so that you do not miss any topic.
The phone I used to record - amzn.to/34V1uqX
Phone stand used - amzn.to/3igP9QZ
Lighting I used - amzn.to/3IpYyQO
My laptop - amzn.to/3L1gt1Z
My gaming Keyboard - amzn.to/3Jt66mY
My gaming Mouse - amzn.to/36B4eKE
Headphones - amzn.to/3u3RnbC
My other videos-
Finding Reverse of a Number - • Finding Reverse of a N...
Check if given number is Prime Number - • Check if given number ...
Finding Minimum and Maximun value from an Array - • Finding Minimum and Ma...
Area and Perimeter of Rectangle - • Area and Perimeter of ...
Program to check if a string is Palindrome - • Palindrome | Program ...
Find sum of digits of a number - • Find sum of digits of ...
Count the number of Digits of a Number - • Count the number of Di...
Java program to print Fibonacci Series - • Java program to print ...
Find Factorial of a number - • Find Factorial of a nu...
Check if a given year is Leap Year - • Check if a given year...
C++ program to Swap two numbers (Using extra variable) - • C++ program to Swap tw...
C++ program to find if a number is ODD or EVEN - • C++ program to find if...
C++ program to find Quotient and Remainder - • C++ program to find Qu...
C++ program to find Sum, Difference, Product and Divison of two numbers - • C++ program to find Su...

Пікірлер: 43
@wheresisgod2295
@wheresisgod2295 Жыл бұрын
beautiful explanation...better than other KZbinrs! thanks much
@mithank2666
@mithank2666 2 жыл бұрын
Thank you so much, RESPECT from karnataka
@Anikets_Art_Gallery
@Anikets_Art_Gallery Жыл бұрын
Extremely good explanation it became like crystal clear for me......
@BTechComputerScience
@BTechComputerScience Жыл бұрын
Glad to hear!
@payalbhuyan9409
@payalbhuyan9409 Ай бұрын
thank god i watched ur video i understood the logic so well thank u so much
@sulethagopi2898
@sulethagopi2898 Жыл бұрын
Thanks for clear explanation...
@aarulmozhinandhini1540
@aarulmozhinandhini1540 3 жыл бұрын
After a Long Gap u are back....thanks for the video bro🤩
@BTechComputerScience
@BTechComputerScience 3 жыл бұрын
Thanks for being supportive😊
@sandhiyamanju7470
@sandhiyamanju7470 Ай бұрын
The way you are teaching is awesome.🎉
@puneethn9104
@puneethn9104 Жыл бұрын
One of the best explanation 🙏
@techbaap999
@techbaap999 3 ай бұрын
Awesome explanation brother. We need more videos from you.
@shivu2012
@shivu2012 2 жыл бұрын
Awesome bro.. how did you learn this deeper....Keep up this work....
@aisumolda6794
@aisumolda6794 2 жыл бұрын
Great explanation!
@shanthinij8328
@shanthinij8328 2 жыл бұрын
Sir upload Java full concept video. It is very much useful for us.
@SindhuVenkatachalam
@SindhuVenkatachalam 3 жыл бұрын
You are just amazing 👍✨
@lillytheresa551
@lillytheresa551 3 жыл бұрын
Ur videos is very helpful
@Wasim2294
@Wasim2294 2 жыл бұрын
Nice explanation 👍
@rajeshkanna3853
@rajeshkanna3853 2 жыл бұрын
But if user enter 100 , we get output 1 and not as 001....how can we solve this?
@animeshkumar7950
@animeshkumar7950 Ай бұрын
superb bro
@ashwiniashwaniperka8482
@ashwiniashwaniperka8482 2 жыл бұрын
Nice explanation
@gujjerajesh2492
@gujjerajesh2492 2 жыл бұрын
nice explanation
@l.d.vgamer9345
@l.d.vgamer9345 3 жыл бұрын
After very long time
@rekhareddy8432
@rekhareddy8432 Жыл бұрын
Please teach from reverse a string
@rekalit8192
@rekalit8192 2 жыл бұрын
Thanks
@abhiram9849
@abhiram9849 3 жыл бұрын
Bro please explain string programs also
@HeavendeepMunjal
@HeavendeepMunjal 17 күн бұрын
love you bhai
@ravi54217
@ravi54217 2 жыл бұрын
public class Playground { public static void main(String[] args) { final var number = -102; System.out.println(reverse0(number)); System.out.println(reverse1(number)); System.out.println(reverse2(number)); System.out.println(reverse3(number)); } // Will not work for negative numbers private static int reverse0(final int number) { if (number >= 0 && number 0) { int lastDigit = input % 10; reverse = reverse * power + lastDigit; input /= 10; } return reverse; } private static int reverse1(final int number) { if (number >= 0 && number 0) { int lastDigit = input % 10; reverse = reverse * power + lastDigit; input /= 10; } return isNegative ? reverse * -1 : reverse; } private static int reverse2(final int number) { if (number >= 0 && number = 0 && number
@luckybhaiyt-3095
@luckybhaiyt-3095 3 жыл бұрын
Anna nuvu thop anna thurrum anna
@zhawu1361
@zhawu1361 Жыл бұрын
Class reverse { Public static void main (string[]args){ Int n=1234,r; While(n>0) { r=n%10; System.out.print (r); r=n/10; } } }
@BTechComputerScience
@BTechComputerScience Жыл бұрын
Here we are not generating the reverse number, we r just printing it. In coding contest, usually we are asked to write a function that returns the reverse number, here we cannot return since we didn't generate a reverse number. So learn accordingly 😊
@coctamizhan19
@coctamizhan19 11 ай бұрын
Soo... Palindrome number and reverse a given number are same?
@sukanshigarg6051
@sukanshigarg6051 11 ай бұрын
if on reversed number is same as the original number then it is indeed a palindrome number
@payalbhuyan9409
@payalbhuyan9409 Ай бұрын
for palindrome number the logic is same , but the in the 2nd part u need to compare the input number with the rev number and write if and else condition.
@rm.121
@rm.121 5 ай бұрын
The above method of reversing a number won't work if the last digit os number is 0 . e.g: 5430 Can you please tell me how to achieve that
@payalbhuyan9409
@payalbhuyan9409 Ай бұрын
actually when u reverse the number then the 0 comes in front which is why it dont show up but it is working
@manojkumar-if9xu
@manojkumar-if9xu 2 жыл бұрын
please make a series in pattern printing program and one solution with explaination of this pattern 1 2 3 4 5 10 9 8 7 6 11 12 13 14 15 20 19 18 17 16
@zhawu1361
@zhawu1361 Жыл бұрын
For my prospective you can also use looping In your code ...
@amanmahato3897
@amanmahato3897 2 жыл бұрын
Good But it would be better if you've done it neatly.
@BTechComputerScience
@BTechComputerScience 2 жыл бұрын
Yes I do create a mess 😅
@priya_world
@priya_world Жыл бұрын
@@BTechComputerScience yes that's why little bit confusing it but great explanation sir
@venkatvenkat6357
@venkatvenkat6357 2 жыл бұрын
Bro simple ah reverse for loop laye potrulame why this much explanation. For(int i=array.length-1;i>=0;i--){ }
@BTechComputerScience
@BTechComputerScience 2 жыл бұрын
Interviewer may not accept this solution.
Number is Positive or Negative? | Without using 'if - else' | Java
4:00
B Tech Computer Science
Рет қаралды 5 М.
Java Program to Reverse a Number with Explanation | reverse a number in Java
8:31
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 47 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
The joker's house has been invaded by a pseudo-human#joker #shorts
00:39
Untitled Joker
Рет қаралды 7 МЛН
Find Factorial of a number | Java
8:19
B Tech Computer Science
Рет қаралды 69 М.
Armstrong Number | To check if a given number is an Armstrong number or not | Java
10:21
METHOD OVERRIDING - JAVA PROGRAMMING
19:27
Sundeep Saradhi Kanthety
Рет қаралды 164 М.
Java Program to Reverse a Number
12:14
Example Program
Рет қаралды 17 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 47 МЛН