Skip to content

Instantly share code, notes, and snippets.

View josescalia's full-sized avatar

Josescalia josescalia

View GitHub Profile
@josescalia
josescalia / HelloWorldClient.java
Created July 21, 2013 07:37
HelloWorldClient to fetch HelloWorld Spring remot
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
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) {
@josescalia
josescalia / PalindromeChecker.java
Created November 14, 2011 07:47
Palindrome 1
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 ");