Frequently Asked Java Program 02: Reverse A Number | 3 Ways of Reverse a Number

preview_player
Показать описание
Topic: Reverse a Number ( 3 Different ways)

#########################
Udemy Courses:
#########################

Manual Testing+Agile with Jira Tool
************************************

Selenium with Java+Cucumber
********************************

Selenium with Python & PyTest
********************************

Selenium with python using Robot framework
****************************************

API Testing(Postman, RestAssured & SoapUI)
*****************************************

Web & API Automation using Cypress with Javascript
********************************************

Playwright with Javascript
**************************

Jmeter-Performance Testing
************************

SDET Essencials(Full Stack QA)
*************************

Appium-Mobile Automation Testing
************************************

Java Collections
*****************

Python Programming
*********************

Cucumber BDD Framework
***************************

Protractor with Javascript
***************************

####################################
Youtube Playlists:
####################################

Manual Testing & Agile
***********************

SQL
*************************

linux & Shell Scripting
**********************

Java
**********************

Selenium With Java+Cucumber
********************************

Python
********************************

Selenium With Python,Pytest&Behave
***************************************

Selenium With Python Using Robert Framework
(Web&API Testing)
*************************************************

API Testing (Postman,SoapUi,&Rest Assured)
**********************************************

Mobile App Testing Appium
****************************

Performance Testing Jmeter
*******************************

Maven,Jenkins,Git,Github,CI/CD
*******************************

SQL,DB Testing&ETL,Bigdata
*******************************

JavaScript Based Automation Tools
********************************

Selector Hub Tools
********************

GraphQL
******************

Cypress API Testing
********************

Cypress Web Testing
**********************

Playwright with Javascipt
**************************

#JavaNumberReversal
#ReverseNumber
#JavaProgramming
#CodeReversal
#JavaTips
#NumberManipulation
#ProgrammingHelp
#JavaBeginner
#CodingChallenge
#Java101
#CodingCommunity
#LearnJava
#JavaTricks
#CodeSnippets
#ReverseInteger
#JavaDevelopment
#ProgrammingQuestions
#Algorithm
#JavaAlgorithms
#CodingProblems
#CodingSolutions
#TechInterview
#CodingSkills
#JavaHelp
#ReverseDigits
#JavaLearning
#ProgrammingLogic
#JavaProblems
#JavaCode
#CodeExamples
#ReverseAlgorithm
#JavaCommunity
#CodingTutorials
#ReverseNumberLogic
#JavaChallenge
#SoftwareDevelopment
#ProblemSolving
#ProgrammingLanguages
#JavaCodeSnippet
#ReverseNumberFunction
#JavaPuzzle
#ProgrammingJourney
#JavaCoders
#JavaPractice
#CodeReview
#AlgorithmDesign
#JavaMentorship
#JavaDev
#ProgrammingProblems
#JavaCodingTips
Рекомендации по теме
Комментарии
Автор

Thank you for explaining in very easy manner

SoumyaSura-my
Автор

Excellent explanation. Even a nontechnical guy like me can comprehend easily. Thanks a lot, sir

showme
Автор

I liked here StringBuilder option the most. For 12300 it returns us 00321 but Option1 - Modulus one returns just 321 which is not good. Also, for numbers more than 9-10 digits Option 1 doesn't work but StringBuffer and StringBuilder comes over well . Thanks for the video !

kennyi
Автор

I always wanted these logics.Guess i found the right channel .Thanks a ton sir!

pavanichella
Автор

You are best teacher in the world, yours teaching skills is awesome sir

priyankajadhav
Автор

Great thanks you sir ☺. You are simply awesome.. coding med interest leni naaku, meerichhe explanation tho interest vachhestundi.. I am practcing well. Once again Thank you very much sir 🙏

nayabshaik
Автор

Hello, I think 2nd and 3rd methods are same. I think 3rd one can be like converting number to string and then using charAt method to extract each char and then appending to the sting builder
int origNum = 123456;
String stNum = String.valueOf(k);
StringBuilder revStg = new StringBuilder();
for (int i = stNum.length()-1; i>=0;i--)
{

}

System.out.println(revStg);

}

}

anshuhyderabad
Автор

My exams are nearing and I found this video. This is so useful. Thank you sir

thechitrolekha
Автор

i think we can also reverse integer or string by using FOR loops ...

vishalbandi
Автор

Thank you, I was looking for such series in hindi.
Thank you again

hemmishra
Автор

You explain it the best way thanks a lot sir...

gauri
Автор

your explain is very clear, it ease to understand

calsoftdev
Автор

WOWWWW.... Well explained. Great teaching. THANK YOU

SFL
Автор

Thank you so much ❤did this for my assignment

busisiwemailula
Автор

Very Nice Explaination...Thank You Sir...!!!

ashokkadam
Автор

I think the input taken sc.nextInt can result in exception if user enters non number or mixed input... we should handle it in a better way

whatisinthenameshakespeare
Автор

Hi Bro, There is one more way
public static String reverseNum(int num) {
String reverseString = "";
String str = Integer.toString(num);
char[] chr = str.toCharArray();
for (int i = 1; i <= str.length(); i++) {
reverseString += chr[str.length() - i];
}

return reverseString;

}


nvr
Автор

Thank you so much very clear explanation

sasikumarchunduri
Автор

Explanation is excellent but, the xor u said that is not correct it would be bidirectional then if the values are same its 1 otherwise its 0

vivekayadi
Автор

thank you sir for this explanation it is really helpful, i have doubt if we dont use scanner class is there any mistakes

akshayar