• Notice regarding image hosts and attachments. See here.

Java newb, needs some pointers.

Associate
Joined
18 Aug 2010
Posts
347
Location
London
I'm not asking for anybody to todo the work for me and nor do I want anyone too as that would kinda flaw the point of uni but I really need some help.


If you could just send me a message I would greatly appreciate it.

Thanks for your time.
 
Last edited:
I need to programme a java program that will read in lines of text and then count the amount of spaces within each line.
 
this works fine now, thanks so much for the help guys :D

got another 3 to write so you will be hearing from my again most likely :P
 
Sorry i dont fully understand what your saying, I need to do the same thing as counting the spaces but this time counting all vowels in an input. But i dont understand how it is not as simple as just adding

char c = sLC.charAt(i);
if (c == ' ' || c=='a' || c=='e' || c=='i' || c=='o' || c=='u') {
count++;

to what I already had.

Yes im using an IDE BlueJ

Thank you for this help by the way, been great.


Edit:

Fixed it :D
 
Last edited:
Hey its the newbie xerco again. and this time he cant get this right.

http://pastie.org/private/noo0jmj4pmbt8modxyhfya

for some reason it mess's up if i add a uppercase into the string, is the cause of ascii?

#Enter text: aBcDe
aBcDe letters not in ascending order
#Enter text:

It basicly sees if the the letters are in alphabetical order or not
 
Back
Top Bottom