// The "PalinDrome" class.
import java.awt.*;
import hsa.Console;
public class PalinDrome
{
static Console c; // The output console
public static void main (String[] args)
{
c = new Console ();
c.println("Please enter a word");
String word = c.readLine ();
int i;
int num = word.length ();
String str = "";
for (i = num - 1 ; i >= 0 ; i--)
str = str + word.charAt (i);
if (str.equals (word))
c.println (word + " is a palindrome");
else
c.println (word + " is not a palindrome");
// Place your program here. 'c' is the output console
} // main method
} // PalinDrome class
試験プロジェクト用に回文プログラムを作成しました。このプログラムは、"mom" などの小文字では問題なく動作しますが、"Mom" などの大文字がある場合は動作しません。私にできることについて何か提案はありますか?