//Create objects of Student class
Student s1 = new Student("Alex", 80);
I am trying to change the s1 part of the code so it would be like every time it runs it it would change to s2, s3, s4, etc.
This is the code i am trying to use to make it happen
id = (accounts1.size() + 1); Random rand = new Random(); int randBalance = rand.nextInt(10000); String accId = ("CA" + id); Account accId = new Account(id, "Savings", randBalance); accounts1.add(id, accId, randBalance);
This post has been edited by robgw3: 15 April 2012 - 03:28 PM