+ 4

Write a program to input a sentence and display only those words whose first letter is Capital and last letter is small

I have done the coding but output is only coming Enter a sentence. Please help 🥺 I need this very urgent https://code.sololearn.com/cjSV8gCnSW38/?ref=app

26th Mar 2022, 11:53 AM
Nandini Bhardwaj
Nandini Bhardwaj - avatar
8 Answers
+ 2
https://code.sololearn.com/crUkP0p2iQzh/?ref=app
26th Mar 2022, 1:13 PM
Jayakrishna 🇮🇳
+ 2
Nandini Bhardwaj You can also use isUpperCase() and isLowerCase() method of Character class https://code.sololearn.com/ccKal80QLNpw/?ref=app
26th Mar 2022, 2:42 PM
A͢J
A͢J - avatar
+ 1
line 10: s=s+" "; // add space 13: char ch=s.charAt(x); //find chat at index x reset outside if => s1=""; (edit: remove ; after loop) try these changes, it works fine. hope it helps.
26th Mar 2022, 12:14 PM
Jayakrishna 🇮🇳
+ 1
Can you please code it for me I am not getting it please 🥺 https://www.sololearn.com/discuss/3007228/?ref=app
26th Mar 2022, 12:39 PM
Nandini Bhardwaj
Nandini Bhardwaj - avatar
+ 1
Thank you so much 🙏
26th Mar 2022, 1:16 PM
Nandini Bhardwaj
Nandini Bhardwaj - avatar
+ 1
Thank you so much Jayakrishna
26th Mar 2022, 1:53 PM
Nandini Bhardwaj
Nandini Bhardwaj - avatar
0
Forgot to tell, that you have a ; after loop, which puts end of loop. You're welcome Nandini Bhardwaj
26th Mar 2022, 1:19 PM
Jayakrishna 🇮🇳
0
THANK YOU SO MUCH
27th Mar 2022, 7:24 PM
Nandini Bhardwaj
Nandini Bhardwaj - avatar