Are there any way to remove the "method is never used"?

public class Foothill05 {

public static void main() {
    Scanner inputStream = new Scanner(System.in);
    String keyCharacterStr;
    int strLength;
    char keyCharacter;
    String theString;
    do {System.out.println("Please enter a SINGLE character to act as key: ");
        keyCharacterStr = inputStream.next();
        strLength = keyCharacterStr.length();
    } while (strLength > 1);
    keyCharacter = keyCharacterStr.charAt(0);
    int strLength2;
    do { System.out.println("Please enter a phrase or sentence >= 4 and <= 500 characters: ");
        theString = inputStream.next();
        strLength2 = theString.length();
    } while (strLength2 < 4 || strLength2 >500 );
    maskCharacter(theString, keyCharacter);
    removeCharacter(theString, keyCharacter);
    countKey(theString, keyCharacter);
}

 public static void maskCharacter(String theString, char keyCharacter){
    String theStringReplace;
    String keyCharacterStr = Character.toString(keyCharacter);
    theStringReplace = theString.replaceAll(keyCharacterStr,"$");
    System.out.println("String with 'P' masked: "+ theStringReplace);
}


public static void removeCharacter(String theString, char keyCharacter){
    String theStringRemove;
    String keyCharacterStr = Character. toString(keyCharacter);
    theStringRemove = theString.replaceAll(keyCharacterStr,"");
    System.out.println("String with 'P' removed: "+ theStringRemove);
}


public static void countKey(String theString, char keyCharacter){
    int count = 0;
    for(int i=0; i<theString.length();i++){
        if(theString.charAt(i)== keyCharacter){
            count ++;
        }
    }
    System.out.println("# Ps: "+count);
}
}

Things like the public class and the method "main()" which said is never used. is there any kinda compiling mistake? Thank you guys so much for view and answer.