Question: need help making a randomizer code for this public static void main ( String [ ] args ) { Scanner input = new Scanner (

need help making a randomizer code for this public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String name = LabUtility.getName(input);
File csvfile = LabUtility.getFile(input);
Random random = new Random();
int yearsOfMarriage = random.nextInt(50)+1;
ArrayList homeList = LabUtility.buildListFromCSV(csvfile,1);
ArrayList spouseList1= LabUtility.buildListFromCSV(csvfile,2);
ArrayList occupationList = LabUtility.buildListFromCSV(csvfile,4);
ArrayList transportationList = LabUtility.buildListFromCSV(csvfile,5);
ArrayList hometownList = LabUtility.buildListFromCSV(csvfile,6);
System.out.println();
System.out.println("Welcome "+ name +","+" this is your future...");
System.out.println("You will marry "+ spouseList1+" and live in a "+ homeList +".");
System.out.println("After "+ yearsOfMarriage +" years of marriage, you will finally get your dream job of being a"+ occupationList +".");
System.out.println("Your family will move to a "+ homeList +"in"+ hometownList + "where you will "+ transportationList +" to work each day.");
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!