Hi i am kind of new to java but can please show me the code on how to count words in an input for example : only allowed to use looping and String Methods only

Select The type of character to be Stripped(1-vowel, 2-consonant, 3-number, 4-other(special characters)

Input

Enter String: sheila_mara_143
Number: 2

Output

sh l m r

Hi This is my second problem on how to count words in a sentence or statement in java example: Only Allowed to use String Methods and Looping

Input :
1. I am in love with you.

2. Especially for you

3. (No Input)

Output:
1. Number of words: 6

2. Not a Sentence

3. No String Input

hi can you please help me with this: (Can only use String methods and Loops)

Input;
1. I can win this tournament!
2. Hello
3. I need you!

Output:
1. I Can Win This Tournament!
2. Hello
3. I Need You!

Hi can you help me with this?Can Only Use String methods and loops

Input
1. Hello
2. World
3. Java
4. ---(no input)

Output
1. ellohay
2. orldway
3. avajay
4. no output

Hi can you help me with this?Can Only Use String methods and loops

Input
1. Hello World
2. obsessed
3. programming

Output.
1. hElLo wOrLd
2. oBsSeSsEd
3. pRoGrAmMiNg

@vijaybrar Do not post the same question multiple times. You are dealing with same string manipulation task so do not create multiple threads for it. As James already kindly pointed we expect you to work on it and prove you doing your work before we decide to advice on it. So come back when you have some code to discuss, we are NOT 24/7 coding support for lazy students

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.