r/javahelp • • Apr 02 '20

Homework I'm losing my mind

I'm having so mutch trouble handle with the input the assignment is : "Design the program" NameShuffler" that: ask to use up to 10 full names up to 120 characters and that each one contains at least two names with less than 4 characters; ending when it has reached the limit or when the user will use the "end" (it is not case sensitive) as a name and there are already 5 valid names. Each invalid name must be discarded, the user being notified of this fact. No final name entry should show a listing of the data entered; after obtaining the first and last name of each name, which contains 4 or more characters; generate as many new names as the ones that were introduced with a first name and a last name, already selected, chosen at random but without repetitions (no more repetitions than there is already by introducing repeated names); and show the new names on the console. To process each name, use a Scanner and String class to use the length () method."

0 Upvotes

5 comments sorted by

1

u/[deleted] Apr 02 '20

What have you tried so far?

1

u/GGairifo Apr 02 '20

I've tried to do with an array. But I have to do it with a 2D array I just don't know how

1

u/Wiqkid Apr 02 '20

What have you tried?

What issues are you having?

1

u/GGairifo Apr 02 '20

I know i have to do a 2D array but Im having trouble with it

1

u/Camel-Kid 18 year old gamer Apr 02 '20

post your code and what part you are specifically stuck on