This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.josescalia.springremote.client; | |
import org.josescalia.springremote.service.HelloWorldService; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: Josescalia | |
* Date: 7/20/13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PalindromeChecker { | |
public static void main(String[] args) { | |
String[] sWordsToCheck = new String[] { | |
"gatemannametag", //p | |
"abcdefghijklmnopqrtuvwxyz", // not p | |
"aaaaa1aaaaa", //p | |
"aaaaa12aaaaa", // not p | |
}; | |
for(int i=0; i<sWordsToCheck.length; ++i) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PalindromeChecker { | |
public static void main(String[] args) { | |
String sWordToCheck = "malam"; | |
System.out.println("Using palindrome1 : "); | |
if(isPalindrome1(sWordToCheck)) | |
System.out.println(sWordToCheck + " Is Palindrome "); | |
else | |
System.out.println(sWordToCheck + " Is Not Palindrome "); |