using scanner class, write a program to input a string and display all the tokens of the string which begin with a capital letter and end with a small letter . Sample input : the capital of India is New Delhi and Sample output: The India New Delhi
Added by David M.
Step 1
First, we need to import the Scanner class. Show more…
Show all steps
Your feedback will help us improve your experience
Joy Densmore and 81 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
'1. Write a Java program that prompts the user to enter a line of text and outputs the number of digits, the number of lower case letter and the number of upper case letter in that text.'
Shelayah R.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD