You were right andreas90. The program thought the blanks were inputs. Changed everything to the next() method and it works fine now.
Type: Posts; User: msinc210
You were right andreas90. The program thought the blanks were inputs. Changed everything to the next() method and it works fine now.
project directions:
1. Create a class called Student that has name, grade, house as instance variables
2. Create a constructor that take these (3) items as parameters and sets them to your...
I'm new to java. I just need a little clarification.
1. Create a class called Student that has name, grade, house as instance variables
2. Create a constructor that take these (3) items as...
I have a StringBuffer named "sentence." I need to replace all occurrences of "A", except occurrences of "A" at the end of a word, with "E".
Example: ABABA ---> EBEBA
However, my code returns...
I have user input in a StringBuffer. I need to search for the word "the" and replace every occurrence with another string, "zee." How do I do this?
int theStart = sentence.indexOf("the");
int...
I have a Machine class but I don't know how to create a constructor which takes owner, price, and belly_star parameters.
main class
//create machines:
Machine star_on = new...