Question: Please help me code the following in: JAVA Please create the code in as basic way as possible, so I can understand it better :)
Please help me code the following in: JAVA
Please create the code in as basic way as possible, so I can understand it better :)
Full points will be awarded, thanks in advance! 
Exercise 1 - Capitalizing First Letters of Input Text 1.1 Write a method that capitalizes the first letter of each word in a sentence, named capitalizeFirstLetters. This method prints a capitalized version of a String to the screen - that is, it changes the first letter of each word in the string to upper case (if it is not already upper case). So "I really enjoy attending lab!" becomes "I Really Enjoy Attending Lab!". The string to be printed should be a parameter to the method, and the method should have a void return. You should test your method in main by getting a line of input from the user and applying the method to it Public static void capitalizeFirstletters(String input) I/TODO: parse input for words and capitalize each one. Hint: You may want to browse the Java String docs for useful methods on strings, such as split(). Hint: You can use a new Scanner to get next) words out of a String. Hint: StringTokenizer is a class that can do the same thing. 1.2 Write a method called namelnitials that takes one String as argument, pertaining to somebody's full name and returns a String of the name's initials. Usage example, String initials -nameInitials("Bertrand Arthur William Russell"); System.out.printin(initials); /should print B.A.W.R 1.3 Write a method called letterCount that takes two String arguments, one containing some text and the other containing a single letter. This method should then compute and return the count of all of the occurrences of that letter in the given text. Usage example, int countMs; countMs letterCount("I am the very model of a modern major general", "m") System.out.println(countMs); //should print 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
