InterviewSolution
Saved Bookmarks
| 1. |
Write a Java program to input a sentence and convert into lowercase and display the total number of words staring with a letter 'a'. Sample Input: ADVANCEMENT AND APPLICATION OF INFORMATION TECHNOLOGY ARE EVER CHANGING Sample Output: The total number of words starting with a letter 'a' is 4 Correct answer will be brainliest wrong answer will surely be reported guys plz answer correctly |
|
Answer» Answer: import java.util.*; public CLASS Exercise59 { public STATIC void main(String[] args){ SCANNER in = new Scanner(System.in); System.out.print("Input a String: "); String LINE = in.nextLine(); line = line.toLowerCase(); System.out.println(line); } } |
|