Question: write a java program. I have most of the code just need help with the methods No Global variables! Start this assignment with this code:
write a java program. I have most of the code just need help with the methods



No Global variables! Start this assignment with this code: lub pi organized by amii anday embors.Ther wi o aaked to enter atamily name Last Na) and he numbr of amily m his program wit only ask for the n in an array that can be passed to other methods 6 e of ono Eamiy and torethr 7 9 10 package membership2: [Tl import java . utilArrays; import javax.swing. JoptionPane: 12 13 15 public class Membership2 16 17 P 18 19 20 21 public static void main (String[] args) { int cont: string name: string familyt ontinue Family's Jast name / array that will contain all tamily member 23 24 25 26 27 28 29 30 31 32 do ( name JOptionPane . ShowinputDialog (null, "What is the name of the family?") store the tamily names into an a family storeFamily(name) : ST ONY once you verity that you have entered the data orrectly into the array, you would comnent this code out print the tamily list as entered TO NOT CONMENT OUT print Family(family) 34 35 36 37 38 39 40 41 42 43 Sort the family familys sort Family( family); Print the sorted tamily list printFamily(family): ASk it thore is another tamily cont JOptionPane . showconfirmDialog ( null, "Do you want to add another family?", "Membership", JoptionPane. YES NO_OPTION 45 46 47 48 }while (cont JOptionPane . YES OPTION); JoptionPane. showlessageDialog (null,"please come again"); / End i main'method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
