+ 1

How do i make a java code that displays possible names?

How do i make a code like this? Enter three first names: Mark Ryan John Possible names are: 1 - Mark Ryan 2 - Mark John 3 - Ryan Mark 4 - Ryan John 5 - John Mark 6 - John Ryan Enter 1-6 to select a name: 6 The initials for John Ryan is JR. Suggested username: john_ryan Thanks for the help! If possible please share the code.

19th Dec 2021, 9:27 AM
Carl Salcedo
Carl Salcedo - avatar
3 odpowiedzi
+ 4
Carl Salcedo Did you try it yourself? Please show us your attempt first.
19th Dec 2021, 9:56 AM
Maisu
Maisu - avatar
+ 1
I think this is a good solution. I hope it helps you. https://code.sololearn.com/cB9HI7PpmHBx
22nd Dec 2021, 7:43 PM
Raul Herrera
+ 1
Hi this code is not fault tolerant but will do the trick. https://code.sololearn.com/cZNWMcT7V5J0
27th Dec 2021, 8:20 PM
Ralf Schoenian
Ralf Schoenian - avatar