标签:reverse ack ignore ann system.in sig enum java int
package huiwen; import java.util.Scanner; public class HuiWen { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.print("请输入一个整数:"); int number=sc.nextInt(); String num = String.valueOf(number); String reversenum=new StringBuffer(num).reverse().toString(); if(reversenum.equalsIgnoreCase(num)){ System.out.println(number+"是回文数"); }else{ System.out.println(number+"不是回文数"); } } }
标签:reverse ack ignore ann system.in sig enum java int
原文地址:https://www.cnblogs.com/love-nan/p/9787153.html