Skip to content

Commit

Permalink
Update PallindromeNumber.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaangupta-YB authored Feb 26, 2021
1 parent 43acd49 commit 0f9c555
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/PallindromeNumber.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
public class Algorithms {
static bool p(int n){
static boolean p(int n){
if(n < 0)
n=-n;

Expand All @@ -19,6 +19,7 @@ static bool p(int n){
else
return false;
}

public static void main(String[] args) {
int n = 2002;

Expand Down

0 comments on commit 0f9c555

Please sign in to comment.