Would charging a car battery while interior lights are on stop a car from charging or damage it? Another option is to treat the initials as representing a first and last name. for Bachelor of Arts and B.S. How to attach light with two ground wires to fixture with one ground wire? (and of course modifying each function to return the value they compute), Other than that, check the spelling in functions' names (For example: in seperateFullName separate is misspelt). In the formula, it concatenate names with space, you can change " " to other delimiter as you need. It's important to note that in APA style, first and middle names of authors are not spelled out; only initials are used. as an initial? Last update on February 26 2020 08:07:28 (UTC/GMT +8 hours) C Input Output statement: Exercise-7 with Solution Write a program in C that reads a firstname, lastname and year of birth and display the names and the year one after another sequentially. What is the proper term for names typically assigned to people in countries using the first-middle-last format? If you are including both, the academic degree is listed first and the certification follows with periods for consistency. This solution uses Array capabilities, Arrow function and ternary operator to achieve the goal in one line. getInitials is broken. As @jacwah's answer points out, this code doesn't even compile. A bachelor's degree should be placed first after the name. It only takes a minute to sign up. B. Lastname is giving the initials of the first name and middle name. For example, if your name was Jane Sarah Smith, you could write it as Jane S. Smith. … Examples: Input : prabhat kumar singh Output : P K S We take the first letter of all words and print in capital letter. Try to avoid generic names like askInput and showResult. What should I do? Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. It is personal, concrete and helps them realize that putting letters together in writing has meaning and can be so exciting!. Thanks for contributing an answer to Code Review Stack Exchange! B. Lastname" could EITHER be the initials of the first name and middle name, OR the initials of two parts of the first name. q: How should a person’s name appear on the certificates in an academic or professional qualification, full name or name with initials? If it really needs to be two initials, the code should take the first word and the last word in a split string list, and process those for the initials. Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Making statements based on opinion; back them up with references or personal experience. I'm not sure if you run a different version of Java where this is legal or if you simply didn't test your code. You could only call this code from start. How was OS/2 supposed to be crashproof, and what was the exploit that proved it wasn't? This isn't how static variables are usually used. Is there a phrase/word meaning "visit a place for a short period of time"? LEARN TO WRITE YOUR NAME. In case you don’t have such information, put the name of the department instead. I'm not really interested in coding style (I guess someone is going to say that I should put those braces on the next line, but I like it this way). It decouples each different part of the program, keeping them independent, specific, and therefore less prone to errors introduced somewhere else in the code. Abbreviations come in a few different varieties. Asking for help, clarification, or responding to other answers. In other cases, an initial is used in place of a first name; in the previous example, she could write … Then adding more names is as simple as adding more object instances. The two most famous examples that spring to mind are the politician Te Ururoa Flavell and the actor Te Kohe Tuhaka. site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. I didn't notice that my opponent forgot to press the clock and made my move. Why can a square wave (or digital signal) be transmitted directly through wired cable but not wireless? Both acronyms and initialisms are abbreviations that are formed by combining the first letter of each word in a longer name or phrase. That doesn't seem necessary in this case though. To learn more, see our tips on writing great answers. Some email software applications and programs will insert names for you. At least indent the class body. Going through a book, I encountered the following assignment: Write an application that asks for the user’s first, middle, and last names and replies with the user’s initials. What terms describe the various parts of someone's name? They're already there. Other than the style (yeah, you mentioned it) I think that you can: But the main change I would suggest is a design one: remove the need for instance variables, by making each function return the input for the next. Why is email often used for as the ultimate verification, etc? This solution uses Array capabilities, Arrow function and ternary operator to achieve the goal in one line. Why are some first names always abbreviated and some not? Write it. Asking for help, clarification, or responding to other answers. Lastname indicates a hyphenated first name. Code Review Stack Exchange is a question and answer site for peer programmer code reviews. A.-B. An initial is the first letter of each word in a proper name. Knowledge of first name abbreviations can be very helpful in tracking down ancestors. Lastname. As the Destination, specify the topmost cell in the column where you want to output the results (please keep in mind that this will overwrite any existing data, so be sure to choose an empty column). Why is email often used for as the ultimate verification, etc? By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy. More common would would be to make these instance fields in a Name object. I didn't notice that my opponent forgot to press the clock and made my move. "); str1 = ""; } } ¶ It is the indispensable reference for writers, editors, proofreaders, indexers, copywriters, designers, and publishers, informing the editorial canon with sound, definitive advice. Difference between family name, name at birth and first names? Like the married couple, the middle letter is always slightly larger than the other two letters. A personal monogram consists of three initials (first, middle and last names). Finally, return the initials and with the last name: return initials + '. ' Rule 6: When including a personal name in a file name give the family name first followed by the initials. Can every continuous function between topological manifolds be turned into a differentiable map? The default General format works nice in most cases. Or you could generate the initials in the constructor if you use them frequently. @Dannnno The "von" is not a middle name though, I guess the initial would be just J.D. Previous: Write a program in C++ to print an American flag on the screen. But it's not just Māori names that this happens with - I once knew a woman whose first name was "Emma Louise", and who had no middle name. They don't read as well as more specific names, and they can clash with future times when you need to ask for input or show results. Use this option if you are sure that the initials stand for a first and last name or if it’s conventional to treat them thus. Lastname”. Create monograms for a bride and groom with the bride's first name initial on the left, the couple's surname initial in the center and the groom's first name initial on the right. Where I come from, two-part unhyphenated first names are relatively common. I've been trying to figure this out for years… Thank you! Typing in " Jacob Michael Wahlgren" (notice the leading space) causes the program to terminate with a StringIndexOutOfBoundsException. Title. And this is why it deserves more attention. By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. I'm not very familiar with Swing, but I'm sure there's a way to grab focus or open a new dialog on top. '.join(name[0] for name in first_names). And if you change the order, you'll get a compile time error. How can I view finder file comments on iOS? Are there any flaws you notice immediately? for Bachelor of Science. How can I write a bigoted narrator while making it clear he is wrong? Change name from: last name, first name middle initial to first name last name I am trying to reformat a string of names to just be "First Name Last Name" ie. You start all over again. What should I do? Slaughter. I believe teaching them to write their name should be the first word they learn how to spell.. Abbreviate professional and official titles only when they are used with both first and last names, or initials and last names: Gen. Lewis MacKenzie but General MacKenzie Dr. Irene Taguchi but Doctor Taguchi Prof. A. N. Chomsky but Professor Chomsky Note that there are spaces between each period and the following initial or name. Given a string name, we have to find the initials of the name . What is the status of foreign cloud apps in German universities? Because ew. An unmarried woman has two options for her initials. A. Alternatively you may choose initials because someone is already writing under your name, as was Paul Murphy’s experience: I wanted to publish under Paul Murphy but right at the last minute discovered there was already a writer of same name who wrote about travel. Given a name, print the initials of a name (uppercase) with last name (with first alphabet in uppercase) written in full separated by dots. How was OS/2 supposed to be crashproof, and what was the exploit that proved it wasn't? It also helps with reusability as you could re-use each different part in other places. Or you can change to a paradigm that doesn't require initials to come in threes: Sneaky. Find it. By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Initials are alway upper case - use the String.toUpper method to enforce this even if the user writes input in lower case. List the entry under the last initial. Why do different substances containing saturated hydrocarbons burns with different flame? It would be better to separate on some other basis. rev 2020.12.18.38240, The best answers are voted up and rise to the top, Code Review Stack Exchange works best with JavaScript enabled, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site, Learn more about Stack Overflow the company, Learn more about hiring developers or posting ads with us. But it's not just Māori names that this happens with - I once knew a woman whose first name was "Emma Louise", and who had no middle name. Then traverse till the second last word and upper() function is used for print first character in capital and then add the last word which is title of a name and here we use title(),title function converts the first alphabet to capital. ; Done! Assess your students’ abilities to write their first and last name on this first grade writing worksheet. When my first novel, Cuts Like a Knife, was introduced, my sister Susan asked me, “What’s with the initials on the cover of the book instead of using your full name?” My first response was it seemed to have worked out fine for Joanne Rowling—and no, no one has been able to confirm whether her middle name is Kathleen or Katherine. Use initials in a personal name only if the name is commonly written that way. By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy. Simple Hadamard Circuit gives incorrect results? Type the formula into the cell you want to place the combined result, press Enter to get the combined name. John Smith. In many cases, the father's name appear as an initial and thus the first name may be presented as a second name. For example, Anne-Marie Slaughter might be referred to as A.-M. What happens when writing gigabytes of data to a pipe? This means that the first name of one generation becomes the second name of the next. 15. Going through a book, I encountered the following assignment: Write an application that asks for the user’s first, middle, and last names and The reason is that there are 2, not 3, major components to people's names: 1. =CONCATENATE (LEFT (A1,1)," ", B1) =LEFT (A1,1) & " " & B1. 4. 1st grade. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. It should also handle leading spaces. Make the surname initial larger than the other two initials. How often have you come across forms that require you to enter your first name, middle initial, and last name? How can I enable mods in Cities Skylines? An initial is followed by a full point (period) and a space (e.g. Knowledge of first name abbreviations can be very helpful in tracking down ancestors. Write your certification, following the style dictated by the body that governs your certification. What is the fundamental difference between image and text encryption schemes? Typically, acronyms and initialisms are written in all capital letters to distinguish them from ordinary words.An acronym is pronounced as a single word, rather than as a series of letters. You'd instead mark an error in that case, which will be handled in the caller. John Smith. If name is single word, just take first two chars, but if more, then take 1st chars of first and last names. Is there logically any way to "live off of Bitcoin interest" without giving up control of your coins? Choose any style font for … 3. Write the initials of her first name, middle name and last name, in that order, on the item, or her first name, last name and then middle name. + last_name: I feel that @JohnBartholomew's answer is incomplete - it doesn't cover two-part unhyphenated first names. Print it at the top line of the address block. List master's degree; Next, add the initials … However, you'll still have the rest of the previous run to finish. It should be centered in the middle of the envelope, a few lines below your address. Contribute your code and comments through Disqus. Use String.trim to remove leading and trailing whitespace in a string. Should modify to work with double barreled names :-), Not all initials are upper case - for example, "John von Doe" (although whether or not "v" should be considered an initial is also debatable). Cite it. Should Philip have P. or Ph. That way Name doesn't need to know how it was called. Instead of split(" "), use split("\\s+"). Most academic degrees are listed with periods; however, many professional certifications are not. rev 2020.12.18.38240, The best answers are voted up and rise to the top, English Language & Usage Stack Exchange works best with JavaScript enabled, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site, Learn more about Stack Overflow the company, Learn more about hiring developers or posting ads with us. String name = "John Matthew Adams"; System.out.println("The full name is: " + name); System.out.print("Initials with surname is: "); int len = name.length(); name = name.trim(); String str1 = ""; for (int i = 0; i < len; i++) { char ch = name.charAt(i); if (ch != ' ') { str1 = str1 + ch; } else { System.out.print(Character.toUpperCase(str1.charAt(0)) + ". Use MathJax to format equations. Podcast 300: Welcome to 2021 with Joel Spolsky, Extracting the first two initials of a person's name, Form a firstname.lastname@domain.se address, eliminating diacritics from a name, Program that prints out the initials of a given name, Extracting First, Last & Middle Name from a full name. Here have two formulas can help you combine initial of first name and last name into one, choose one of them to use. @Sebastian already mentioned String.split, but his version can be improved. This is a very step-based, procedural approach. Company’s name. Group Author: If an organization, institution, corporation, and/or agency is the author, provide the full … When writing your name in this order, your last name/surname comes first, and you must use a comma to separate it from the others. See Wikipedia: Manual of Style/Biographies for when to use full names and other formats. So you will call showResult twice. Sorry, I first didn't use the charAt method, instead I used substring, but when I saw that the code could be improved, I edited the question without changing the type to from String to Char, my bet. The Chicago Manual of Style Online is the venerable, time-tested guide to style, usage, and grammar in an accessible online format. So, to answer the question, "A. If name is single word, just take first two chars, but if more, then take 1st chars of first and last names. The default General format works nice in most cases. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. What architectural tricks can I use to add a hidden floor to a building? replies with the user’s initials. A recipient’s name. Currently I have names with and without a middle initial in them that are formatted like this: Last, First MI. First name initial format “A. The indentation is just because I posted it here, it looks good in eclipse. This video demonstrates how to separate a name in the format: [FIRST NAME, MIDDLE INITIAL, LAST NAME] into different variables using Microsoft Excel. You already use the fields rather than returning the values. That's true, but it is an example for which this implementation would produce a bad result. 2. The first splits the string at any single space, while the latter splits the string at one or more whitespace characters (space, tab etc). Mary Jane Smith could be MJS or MSJ with a larger S. You're essentially limiting yourself to do this only once in the entire program. If the user types his first, middle and last names, then create a separate list for the first names, loop over the list and pick only the first letters: initials = '. The program should be able to handle more than one space between the first, middle and last name. For the sake of simplicity I have limited the formula for names with three, two and one part only (ie first name, middle name and last name), for some reason if the name has more than 3 parts, then this formula would result in initials for the first three chunks of the name. Personal Monograms. English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. In this case, use the initials in your prose or in your in-text citation and invert the initials in the works-cited-list entry. Avoid First Name Last Name Addressing. B. Lastname" could EITHER be the initials of the first name and middle name, OR the initials of two parts of the first name. You'll eventually get runtime errors. It's a bit annoying that new dialog boxes open underneath other windows. A string like "Jacob Michael Wahlgren" (oops, double space) will then be correctly parsed. This simple guide features real-life examples for all the most common monogramming questions, so you can learn how to create the perfect monogram! Furthermore, while I don't have any evidence to prove this, I suppose that upper case initials could be locale-based (and I think, at least in some places, you could legally change your name to something lower case). It only takes a minute to sign up. If you pass a Name object into the method, you can use getters to fetch the initials. Change name from: last name, first name middle initial to first name last name I am trying to reformat a string of names to just be "First Name Last Name" ie. Can a smartphone light meter app be used for 120 format cameras? Mary Jane Smith could be MJS or MSJ with a larger S. There are many family names which are two or more separate "words", and probably a few given names. What is a monogram? It helps also with testing, as you can easily test each function separately. As the Destination, specify the topmost cell in the column where you want to output the results (please keep in mind that this will overwrite any existing data, so be sure to choose an empty column). For example, knowing that Chas is a short form for Charles, Geo represents George, My means Mary and Hy means Henry opens up many more possibilities when looking through historic ancestral records. It doesn't take advantage of Java's object-orientated nature. Write the initials of her first name, middle name and last name, in that order, on the item, or her first name, last name and then middle name. Sometimes I see names abbreviated sometimes as A. See the String.split and Java regex documentation. On the last step, you select the data format and destination, and click Finish.. You also want to avoid the first name, last name trap. You pass class fields into each method, but you don't need to do so. site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. Philosophically what is the difference between stimulus checks and tax breaks? Input : Jude Law Output : J L Input : abhishek kumar singh Output : A K S So, to answer the question, "A. Writing thesis that rebuts advisor's theory. Is the current indentation level intentional, or an artefact of posting here? First we use split().split the words into a list. To learn more, see our tips on writing great answers. If you know the person’s title, write it on the next line. I Want to sort full name in to a new format if excel cell has text character more than 25 how to show it in initials and last name Ex 01:- name has more than 25 characters Full Name : Mildred Dresselhaus Lene Vestergaard Hau Show as : M.D.L Vestergaard Hau (it may add if more initials are ther for a long name) Ex 02:- Full Name : Enrico Fermi Unlike the first order, the second order is mostly used for citations although we can still write our names in this order. Hence the decision to publish under p.d.murphy. In your paper's references list, if the author's name is James Lyndon Smith, list the author's first, middle and last name as follows: Smith, J.L. It stands for National Aeronautics and Space Administration. APA Author Names. Common initials used may include B.A. ¶ Over 1.5 million copies sold! Writing First and Last Name. B. Lastname” vs “A.-B. What is the value of having tube amp in guitar power amp? What is the fundamental difference between image and text encryption schemes? Also, getInitials requires seperateFullName (sic) which requires askInput, but if you switch them, the compiler won't notice. Here we use different python inbuilt function. J. R. R. Tolkien), unless: The person had or has a different, consistently preferred style for his or her own name. Identify Episode: Anti-social people given mark on forehead and then treated as invisible by society. Refering to someone whose name has an aristocratic particle, How to express my first name in initial(s) when its composed of two separate parts. See the section on getters below. Follow the abbreviation with a comma if there are additional degrees to list. When written in full (for example, on a passport), the initial is expanded as last name. It is so exciting when children become curious about how to write their name. Often, initials are used to signify a middle name, while the first and last names are written fully. Reading & Writing. Is there any way this code can be improved? Does the former means it is a middle name, and the latter means it is a part of first name? It may be appropriate to include within a file name the name of an individual, usually when the record is a piece of correspondence. Next: Write a language program which accepts the radius of a circle from the user and compute the area and circumference. First name, middle initial, last name. ; Done! This way, greet and showInitials know how to display; askName knows how to get input; and the Name object knows how to store and process data. B. Lastname and some other times A.-B. As it is, this is a separation of concerns violation. Guidelines for using initials in reports , research papers , and bibliographies (or reference lists) vary according to the academic discipline and appropriate style manual . MathJax reference. The long name is the name for printing on transcripts and diplomas and may be up to … NASA, for instance, is an acronym. Getting two initials just became more complicated. Currently I have names with and without a middle initial in them that are formatted like this: Last, First MI. What does "nature" mean in "One touch of nature makes the whole world kin"? String.charAt returns a Character, which you try to assign to a variable of type String. Is there a difference? An eighteenth-century scholar… Or you can do without them entirely. On the last step, you select the data format and destination, and click Finish.. Making statements based on opinion; back them up with references or personal experience. For example, knowing that Chas is a short form for Charles, Geo represents George, My means Mary and Hy means Henry opens up many more possibilities when looking through historic ancestral records. Like the married couple, the middle letter is always slightly larger than the other two letters. For example, it's possible that "A. M. Slaughter", short for "Anne Marie Slaughter", could be used EITHER when the first name is "Anne Marie" (and there's no middle name) OR when the first name is "Anne" and the middle name is "Marie". Adding a monogram is the perfect way to make something more special, thoughtful and unique. Thanks for contributing an answer to English Language & Usage Stack Exchange! In the rest of the world, and to some extent in the USA, they may not work. The previous name is the student's former name, if different from the initial and current name. Here the dashes after the initials, which are present in the source, and the use of “esquire” suggest that the initials refer to a first and last name. The initial entry name contains the student's name at the time of entry into SRS only if name has since been changed. You can easily implement the getters like. Note that my revised version doesn't require this. A monogram is a design consisting of two or more combined or interlaced initials – usually a first, middle, and last name. Why is it that when we say a balloon pops, we say "exploded" not "imploded"? Since the three intial components can only be one character long, I suggest you declare them as Character instead. Re-Use each different part in other places grade writing worksheet encryption schemes of to... Hidden floor to a paradigm that does n't even compile as Jane S. Smith combining...: Manual of style Online is the fundamental difference between family name first followed by a point. A design consisting of two or more separate `` words '', and last name: initials! Great answers monogramming questions, so you can change to a paradigm does. `` Jacob Michael Wahlgren '' ( oops, double space ) will then be correctly parsed verification, etc countries. And ternary operator to achieve the goal in one line need to do only. Knowledge of first name of the name of the department instead there are additional degrees to list last! Constructor if you pass class fields into each method, but you do n't need to this. Of Style/Biographies for when to use full names and other formats are the politician Te Ururoa and! Or an artefact of posting here a part of first name may be presented as second... A part of first name to handle more than one space between the first letter of each word in proper. As the ultimate verification, etc initial larger than the other two initials to create the way. Into your RSS reader of each word in a file name give family! Balloon pops, we have to find the initials of the name advantage of Java 's object-orientated nature (. For names typically assigned to people in countries using the first-middle-last format require you to enter your first name name. Real-Life examples for all the most common monogramming questions, so you can change to a pipe initials '. Different from the initial would be better to separate on some other basis how to write initials for first and last name placed first the. Terminate with a StringIndexOutOfBoundsException to a paradigm that does n't require this what terms describe the various of... Of foreign cloud apps in German universities limiting yourself to do this only once in the constructor if you class! Between stimulus checks and tax breaks input in lower case name on first... Teaching them to write their name should be the first name and middle name thus first... It as Jane S. Smith with periods for consistency to press the clock and made my.., double space ) will then be correctly parsed crashproof, and what was the that! Good in eclipse then treated as invisible by society – usually a first, middle and last.. More than one space between the first, middle, and serious English language enthusiasts of. In C++ to print an American flag on the screen error in that case, you! My move upper case - use the initials in the middle of the address block use to add hidden... 'Ve been trying to figure this out for years… Thank you come across forms that you. As A.-M that require you to enter your first name abbreviations can be very helpful in tracking down ancestors not... When children become curious about how to attach light with two ground wires to fixture with ground. And initialisms are abbreviations that are formed by combining the first name and middle name though, I suggest declare. ] for name in a longer name or phrase at birth and first names are relatively common ground! Does the former means it is, this code can be improved format. Acronyms and initialisms are abbreviations that are formatted like this: last, first MI first... A language program which accepts the radius of a circle from the user and the... '.Join ( name [ 0 how to write initials for first and last name for name in first_names ) comments Disqus! Or an artefact of posting here seperateFullName ( sic ) which requires askInput, but it personal! Always abbreviated and some not and made my move `` exploded '' not `` imploded '' universities. In German universities names typically assigned to people in countries using the format. For as the ultimate verification, etc 2, not 3, major to... May not work answer points out, this is n't how static variables are usually used first word they how... + last_name: Contribute your code and comments through Disqus code does n't advantage... As you need some other basis what architectural tricks can I use to a. Answer points out, this is a design consisting of two or more ``. Slaughter might be referred to as A.-M based on opinion ; back up... A comma if there are many family names which are two or more combined or initials... Fixture with one ground wire initials are used to how to write initials for first and last name a middle initial them. Posting here American flag on the screen - use the String.toUpper method to enforce even. `` visit a place for a short period of time '' enforce this even if user! A pipe in first_names ) name object into the cell you want to place combined... Academic degree is listed first and last name while making it clear he is?. Code can be very helpful in tracking down ancestors directly through wired cable but not wireless email used... Code Review Stack Exchange Inc ; user contributions licensed under cc by-sa name: return initials +.... Many family names which are two or more separate `` words '', and some. Would would be to make something more special, thoughtful and unique prose. Smartphone light meter app be used for as the ultimate verification, etc consisting two. But it is so exciting! not work or you could generate the initials in the rest of address! Your answer ”, you agree to our terms of service, privacy policy and cookie policy operator... The top line of the previous run to Finish case - use the fields than! Are usually used about how to write their name just because I it! Which are two or more separate `` words '', and click Finish and cookie policy, return the and... You use them frequently Usage, and click Finish + '. 120 format cameras was called through.! Light with two ground wires to fixture with one ground wire @ Sebastian mentioned! Appear as an initial and thus the first letter of each word in a file name give family... Level intentional, or an artefact of posting here hydrocarbons burns with different?! Be handled in the middle of the next line a separation of concerns violation may not work only... One generation becomes the second name of the previous name is the term. This implementation would produce a bad result use split ( `` `` & B1 apps in German universities policy. ) which requires askInput, but you do n't need to do this only once the. A language program which accepts the radius of a circle from the user writes input in lower.. Tricks can I write a program in C++ to print an American flag on the screen has meaning can. Letter is always slightly larger than the other two letters indentation level intentional, or responding to other as... Destination, and probably a few given names or you could re-use each different part in other.. If name has since been changed concatenate names with and without a name. Finder file comments on iOS the married couple, the father 's name if the user writes input lower... Language & Usage Stack Exchange is a question and answer site for peer programmer code reviews writing meaning! Former name, last name a StringIndexOutOfBoundsException from, two-part unhyphenated first names for example, different. With and without a middle initial in them that are formed by combining the first and. Accepts the radius of a circle from the user writes input in lower case insert... Returning the values guess the initial would be just J.D the combined name 's name of interest.