Search:

Type: Posts; User: marmanq

Search: Search took 0.07 seconds.

  1. Replies
    17
    Views
    1,722

    Re: Does this work?

    So I just came up with a new idea/question. Could I make a new string called String userSentLength and tell the compiler for that string to read the user's random sentence for the length. Then I...
  2. Replies
    17
    Views
    1,722

    Re: Does this work?

    I'm sorry, i'm having trouble understanding. The program is suppose to allow the user to type in a random sentence of any length and then its suppose to make all the letters (not including the first)...
  3. Replies
    17
    Views
    1,722

    Re: Does this work?

    I would like it to skip the first character and make every other character in the sentence lowercase. That's why I put 1-int numLetters. I was hoping that would go from 1- then insert the number of...
  4. Replies
    17
    Views
    1,722

    Re: Does this work?

    so can I just remove int and leave numLetters or do I have to add something else? Also this is all of my code, but I only get two errors when compiling:
    Program.java LINE: 20 COL: 80 '.class'...
  5. Replies
    17
    Views
    1,722

    Re: Does this work?

    /*
    * MGramChecker
    */

    import java.io.*;
    public class MGramChecker {
    public static void main(String args[]){
    String userSent = " ";
    String corrSent = " ";
    int numLetters;
  6. Replies
    17
    Views
    1,722

    Re: Does this work?

    So I changed my code to:

    /*
    * MGramChecker
    */

    import java.io.*;
    public class MGramChecker {
    public static void main(String args[]){
    String userSent = " ";
  7. Replies
    17
    Views
    1,722

    Re: Does this work?

    Yeah, I just added that to my response above. Post #3. It was line 20 and column 76. Thanks for the help.
  8. Replies
    17
    Views
    1,722

    Re: Does this work?

    So I found an online compiler and when I tried to run the program it said "illegal start of expression." It says that occurred on line 20 column 76 which is:
    corrSent =...
  9. Replies
    17
    Views
    1,722

    Does this work?

    I'm new to java programming and I have been reading a java how to book. At the end of each chapters there are challenges and one of the challenges was to:
    "Write an application that reads in a...
Results 1 to 9 of 10