Palindrome string program problems

I am writing a program regarding printing palindrome words in Sentence in Java. Not sure why it won't print. Correct me if I'm wrong here. Thanks.

import java.util.*;

class PalindromeString {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("Enter the String: ");
        String string = input.nextLine();
        int l = string.length();
        String bin = " "; // Used to extract words....

        for (int i = 0; i < l; i++) {
            char Char = string.charAt(i);
            if (!(Character.isWhitespace(Char))) {
                bin = bin + Char;
                continue;
            } else if (Character.isWhitespace(Char)) {
                int b = bin.length();
                int d = bin.charAt(0);
                int e = bin.charAt(b - 1);
                if (d == e)
                    System.out.print(bin + " ");
                bin = " ";
            }
        }
    }
}