Question: Write a java program that takes a line of text from the user and prints only the first word from the entered line, and first

Write a java program that takes a line of text from the user and prints only the first word from the entered line, and first character from the first word (use Scanner Class)

Example: Line Entered JAVA Object Oriented Programming Output should be First word: JAVA First character: J

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!