K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
marco cucinotta wrote:My code so far does not work, is incomplete, and probably doesn't make sense. I'm not sure what to do or how to improve. Any help will be much appreciated.]
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
marco cucinotta wrote:But the output is [Ljava.lang.String;@29214726-way
Joanne
marco cucinotta wrote:For right now I am trying to get the first vowel words to print.
Joanne
marco cucinotta wrote:I did that because the method findFirstVowel has to return the position of the first vowel, not add the "-way".
Joanne
marco cucinotta wrote:So if the sentence "I eat cake" is entered, the output should be "I-way eat-way ake-cay"
Joanne
marco cucinotta wrote:I don't know how to examine each word individually.
Joanne
Joanne Neal wrote:instead of passing the whole array to firstVowel, you just pass individual words.
Joanne
Joanne Neal wrote:...instead of passing the whole array to firstVowel, you just pass individual words...
Joanne
marco cucinotta wrote:I can translate a single word into the appropriately changed word, but it doesn't analyze anything after the first word.
Joanne
marco cucinotta wrote:So how would I do that?
Joanne
marco cucinotta wrote:Would I make a while loop like (while(words < line.length()) in the translatewords or translateSentence method? This would keep reading the words until the original length of the string is up
Joanne
marco cucinotta wrote:Would I make a while loop like (while(words < line.length()) in the translatewords or translateSentence method? This would keep reading the words until the original length of the string is up...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
marco cucinotta wrote:I know what I want the computer to do, it's me telling the computer what to do is the problem.
This is my first course in programming and I have this project and another lab due on Friday so that's why I'm rushing on this. I understand people don't want to just give me the answer but help, but just telling me to stop coding isn't very helpful to me.
I'm not trying to be harsh I'm just stressing over this seemingly easy program that is difficult for me.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
There are three kinds of actuaries: those who can count, and those who can't.
Tim Driven Development | Test until the fear goes away
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|