I need help with the Second Initial of this Java Program. I will attach file.
I cannot get it to read the second initial. The way I have it now does capitalize both initials but the position keeps giving me the same one if I input for example linda ross it capitalizes L.L. instead of L.R.
Well, you will have to read up about the scrn.next() command. It has a default delimiter of a space, " ". So it reads only the first name. You can check that by printing what you read (a good debugging tool). System.out.println(name); right after reading in the name will do. All you need to change is to use the method .nextLine() instead of .next() Later on, the code is good, except that there is a line of code that modified "name" unnecessarily. I'll let you check that.
Join our real-time social learning platform and learn together with your friends!