Write a program to input a sentence and display only those words whose first letter is Capital and last letter is small | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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