Web appOpen in Telegram

PostWrite a Java program to check if a number is a palindrome in Java?

12 June 2025
<
</> ᴍᴜᴋᴇsʜ </>
Write a Java program to check if a number is a palindrome in Java? import java.util.*; public class quest3 { // Write a Java program to check if a number is a palindrome in Java? ( 121 is a // palindrome,321 is not) A number is called a palindrome if the number is equal // to the reverse of a number e.g.,121 is a palindrome because the reverse of // 121 is 121 itself. On the other hand,321 is not a palindrome because the // reverse of 321 is 123, which is not equal to 321 public static void isPalindrome(int num) { int orignalnum = num; int palindrome = 0; while (num > 0) { int remind = num % 10; num = num / 10; palindrome = palindrome * 10 + remind; } System.out.print(palindrome == orignalnum); } public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter any number: "); int num = sc.nextInt(); isPalindrome(num); } }
3 · 1.1K ·

Nearby in the feed

रराम सियाराम सियाराम जय जय राम 🙏 तुम साथ हो जो मेरे, किस चीज की कमी है ।Jinke pass bhi Groups hain 10 members se 250 members tak ke vo mujhe de sakte hain (Only telegram groups no newly created) And don't comment here directly messaरराम सियाराम सियाराम जय जय राम 🙏 तुम साथ हो जो मेरे, किस चीज की कमी है ।We have started new Channel. Is channels me aapko 8000 se lekar 1lack+ salary ke jobs achive karne ke liye kya skills required hoti hain unke bare me batayenge.
this message
<</> ᴍᴜᴋᴇsʜ </>Reverse Decreasing Star pattern of number n ****** ***** **** *** ** * CODE : public class pattern1 { public static void reverseStar(int n) { // reverse pattern<</> ᴍᴜᴋᴇsʜ </>Print Hollow Rectangle Pattern using java . public class Hollowrect { public static void HollowrectPattern(int noOfRows, int noOfCols) { // for rows outer loop
JJava Codes Basic to AdvanceJava Codes Basic to Advance@Java_Codes_Pro · channel · Tech
1 988subscribers213posts in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count