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.
Another way of doing this public static void main(String []args){ String s="TH-camthisNaveeAutomatioLab"; String replace = s.replaceAll("[^A-Z]",""); System.out.println(replace.length()); }
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 ☺️
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
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
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.
NAL is not a word. Question is specific to capitalize string only. NaveenAutomationLab will give you 3 words as there are 3 words and each word starting with a capital letter. java cant validate the words by its own. In yur logic, you have to check once I get capital letter, it means there is a word up to the next caps letter.
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 (Character.isLowerCase(str.trim().charAt(0))) { count++; } for (int i = 0; i < str.length(); i++) { if (str.charAt(i) >= 'A' && str.charAt(i) Character.isUpperCase(e)).count();
System.out.println(count);
} } OUTPUT: 6 5 please help i am not able to get why this is happening
public class StringHandling { public static void main(String[] args) { String str = "NaveenAutomationLabsTH-cam"; int strLen = str.length(); int count = 0; int startindex = 0; int endindex = 0; for (int i = 0; i < strLen - 1; i++) { if (Character.isUpperCase(str.charAt(i))) { count++; endindex = i; if (startindex != endindex) { System.out.println(str.substring(startindex, endindex)); } startindex = endindex; } if (i == strLen-2) { System.out.println(str.substring(startindex)); } } System.out.println("Total Number of Words are: " + count); } }
Hi Naveen, this is the question asked my one of the company in UK
Naveen, thanks! You do a great things, really like your channel. Your viewer from Russia 😘
Thanks for watching
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.
Another way of doing this
public static void main(String []args){
String s="TH-camthisNaveeAutomatioLab";
String replace = s.replaceAll("[^A-Z]","");
System.out.println(replace.length());
}
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 ☺️
1 more interview question Naveen,
How to debug the code if any test scrip failed in a smart way?
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
Mail me at naveenanimation20@gmail.com
Pattern is new to me. Did you uploaded any video for pattern ??
Videos are very helpful naveen.
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
Sir automation testing karne ke liye dev ops karna zaruri hai kya
Basic dev ops skills are needed.
Interesting. Thank you very much.
Thanks!!! Pattern one was quite new to me.
Thank you brother
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.
NAL is not a word. Question is specific to capitalize string only. NaveenAutomationLab will give you 3 words as there are 3 words and each word starting with a capital letter. java cant validate the words by its own. In yur logic, you have to check once I get capital letter, it means there is a word up to the next caps letter.
@@naveenautomationlabs thanks for explaining. Now I am clear
Kudos sir 👏
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 (Character.isLowerCase(str.trim().charAt(0))) {
count++;
}
for (int i = 0; i < str.length(); i++) {
if (str.charAt(i) >= 'A' && str.charAt(i) Character.isUpperCase(e)).count();
System.out.println(count);
}
}
OUTPUT:
6
5
please help i am not able to get why this is happening
Hey Naveen the telegram link has expired .
Can you please get us an active one ?
Hi Naveen, pls explain this
input=tomorrow
Output=t$m$$rr$$$w
String s2 ="tomorrow";
String repl= s2.replace('o', '$');
System.out.println(repl);
How can i print all the words?
public class StringHandling {
public static void main(String[] args) {
String str = "NaveenAutomationLabsTH-cam";
int strLen = str.length();
int count = 0;
int startindex = 0;
int endindex = 0;
for (int i = 0; i < strLen - 1; i++) {
if (Character.isUpperCase(str.charAt(i))) {
count++;
endindex = i;
if (startindex != endindex) {
System.out.println(str.substring(startindex, endindex));
}
startindex = endindex;
}
if (i == strLen-2) {
System.out.println(str.substring(startindex));
}
}
System.out.println("Total Number of Words are: " + count);
}
}
Hey Naveen, the telegram link has expired. Can you please get us an active one?