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...
Type: Posts; User: marmanq
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...
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)...
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...
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'...
/*
* MGramChecker
*/
import java.io.*;
public class MGramChecker {
public static void main(String args[]){
String userSent = " ";
String corrSent = " ";
int numLetters;
So I changed my code to:
/*
* MGramChecker
*/
import java.io.*;
public class MGramChecker {
public static void main(String args[]){
String userSent = " ";
Yeah, I just added that to my response above. Post #3. It was line 20 and column 76. Thanks for the help.
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 =...
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...