How do you check if a string is palindrome or not?
Anonymous
private static boolean checkPaliandrom(String s1) { for(int i=0; i<=s1.length()/2;i++) { if(s1.charAt(i) != s1.charAt(s1.length()-i-1)) return false; } return true; }
Check out your Company Bowl for anonymous work chats.