Get the Count of Words From a Capitalized String - Java Interview Question

preview_player
Показать описание
#JavaInterviewQuestion #JavaByNaveenAutomationLabs

Get the Count of Words is a Given Capitalized String - Java Interview Question

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Naveen AutomationLabs Paid Courses:
Java & Selenium:

Java & API +POSTMAN + RestAssured + HttpClient:
Рекомендации по теме
Комментарии
Автор

Hi Naveen, this is the question asked my one of the company in UK

silpagadde
Автор

Naveen, thanks! You do a great things, really like your channel. Your viewer from Russia 😘

dondigidon
Автор

Thanks Naveen for these useful Content ☺️ Please start a Series on API testing with rest assured 🙏 Which will be helpful for many of us ... Thanks in advance ☺️

mohamedhazeeb
Автор

Your voice sounds different in this video. Might be a post covid effect. I am also covid Positive . I am recovering now. Hopefully it would pass soon.
All the best Naveen ...and thanks for making such brilliant videos.

shankumondal
Автор

Thanks!!! Pattern one was quite new to me.

AbhishekSingh-bjyc
Автор

1 more interview question Naveen,
How to debug the code if any test scrip failed in a smart way?

silpagadde
Автор

Pattern is new to me. Did you uploaded any video for pattern ??

karunamoorthyramakrishnan
Автор

Another way of doing this

public static void main(String []args){

String
String replace = s.replaceAll("[^A-Z]", "");


}

surajgoenka
Автор

Hi, just been through few of your videos today fortunately. very informational. What is the best way to connect with you if you provide online courses as well?
I'm from Melbourne. Your response will be awaited.
Thanks

SandeepKaur-rwum
Автор

I have 5 years of experience in Testing area both Manual and Automation.Now I am looking for change and good package like 13-14LPA. Can You please suggest interview level and which skills should I have it

ravindramr
Автор

Sir automation testing karne ke liye dev ops karna zaruri hai kya

ishk
Автор

Hey Naveen, the telegram link has expired. Can you please get us an active one?

TheLogicalHuman
Автор

hello sir in this after checking for the first word id lower case or not and after that if i am applying the stream one to count it is not giving the expected result

here's the code

String str = "hiTarunSinghRawatIt'sMe";

long count = 0;

if {
count++;
}

for (int i = 0; i < str.length(); i++) {

if (str.charAt(i) >= 'A' && str.charAt(i) <= 'Z') {
count++;
}
}

System.out.println(count);





count=str.chars().filter(e ->

System.out.println(count);


}

}

OUTPUT:
6

5

please help i am not able to get why this is happening

tarunsinghrawat
Автор

This is to count capital character in string not a capitalize word in string.
How to we validate word?
If input is NAL then output is 3.
If input is NaveenAutomationLab then also output is 3.

shankardayal
Автор

Hi Naveen, pls explain this
input=tomorrow
Output=t$m$$rr$$$w

sukanyap
Автор

Hey Naveen the telegram link has expired .
Can you please get us an active one ?

Ashokkumar-jbpi
join shbcf.ru