+ 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
8 Answers
+ 2
https://code.sololearn.com/crUkP0p2iQzh/?ref=app
+ 2
Nandini Bhardwaj
You can also use isUpperCase() and isLowerCase() method of Character class
https://code.sololearn.com/ccKal80QLNpw/?ref=app
+ 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.
+ 1
Can you please code it for me I am not getting it please 🥺
https://www.sololearn.com/discuss/3007228/?ref=app
+ 1
Thank you so much 🙏
+ 1
Thank you so much Jayakrishna
0
Forgot to tell, that you have a ; after loop, which puts end of loop.
You're welcome Nandini Bhardwaj
0
THANK YOU SO MUCH