Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 201141b

Browse files
authored
Update ReverseInteger.java
1 parent 8f0c2c1 commit 201141b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/leetcode/math/ReverseInteger.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ReverseInteger {
3838
* @param num an integer.
3939
* @return the reverse of {@code num}.
4040
*/
41-
private static int reverse(int num) {
41+
public static int reverse(int num) {
4242
long reverse = 0;
4343
int pop;
4444

@@ -59,4 +59,4 @@ public static void main(String[] args) {
5959
System.out.println(reverse(Integer.MAX_VALUE));
6060
System.out.println(reverse(Integer.MIN_VALUE));
6161
}
62-
}
62+
}

0 commit comments

Comments
 (0)