/*
* MGramChecker
*/
import java.io.*;
public class MGramChecker {
public static void main(String args[]){
String userSent = " ";
String corrSent = " ";
int numLetters;
read = BufferedReader(new InputStreamReader(System));
System.out.print("What's your sentence you need corrected?");
try {
userSent = reader.readLine();
}
catch (IOException ioe) {
System.out.println("I/O Exception Occured");
}
corrSent = userSent.toUpperCase(charAt(0)) + userSent.toLowerCase(charAt(1-int numLetters));
//Line 20 is the line above. See the line above. Its suppose to take the user's sentence.
//Then go to the first character and put it in upper case. Then its suppose to take
//the rest of the sentence and put it in lower case.
System.out.println("Here is your corrected sentence:" + corrSent + ".");
System.out.println("Your Welcome");
}
}