fork download
  1. import java.io.*;
  2.  
  3. class ReadPalindrome
  4. {
  5. public static boolean is_Palindrome(int x)
  6. {
  7. return (x==Palindrome(x)? true: false);
  8. }
  9. public static int Palindrome(int num)
  10. {
  11. while(num>0)
  12. {
  13. int y;
  14. String z="",i="";
  15. y=num%1000;
  16.  
  17. i= Integer.toString(y);
  18. z=z+i;
  19. num=num/10;
  20. System.out.println(num + z);
  21. }
  22. return 0;
  23. }
  24. public static void main (String args[])
  25. {
  26. int number1=1221, number2=1234;
  27.  
  28. }
  29. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/TkYKuA/prog.fs(1,17): error FS0010: Unexpected symbol ';' in expression
stdout
Standard output is empty