DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVA
reverse a integer in java
while(num != 0) { int digit = num % 10; reversed = reversed * 10 + digit; num /= 10; }
PREVIOUS
NEXT
Tagged:
#reverse
#integer
#java
ADD COMMENT
Topic
COMMENT
Name
1+7 =
Submit