00:01
Hello student, here is the java program.
00:02
Here java program is to design and write a program that takes and input the proper name, compute and store the following component in the separate string variable and output the required information.
00:13
So here import util scanner class is taken.
00:16
So here public class proper name.
00:19
So class name is proper name and public static void main scanner class is taken.
00:24
Prompt the user to enter the proper name.
00:26
So here with the help of system .out .println enter a proper name.
00:31
So proper name is a string type string.
00:37
So here with the help of a scanner next line we will enter the name.
00:42
Compute the total character in the proper name.
00:45
So not including the space.
00:46
So now whatever string we will enter there will be spaces in the string.
00:51
So total character will be counted and it will be saved in the total characters.
00:56
It will be the integer type.
00:58
So with the help of a proper name .length with the help of a length function we will calculate the total length.
01:04
Extract the first character middle name and the last name from the proper name.
01:09
So here's first name string type data is taken.
01:12
So here from the proper name .substring.
01:15
So here proper name .indexof that is taken from first name is taken with the help of substring 0 proper name .indexof.
01:25
Now string middle name.
01:26
So middle name is calculated by adding the one proper name .substring proper name .indexof.
01:32
Now adding one it means it will go through the middle name.
01:37
So here proper name .last indexof.
01:41
So after this last name is taken.
01:44
So last name is taken proper name .last index we will add the one.
01:51
So it will give the last name...