Dear Members,
I have just started programming java. My teacher gave me an assignment
where i have to create an array of objects of arbitrary length ( length decided by the user). Each object shoud have the following structure. Name(String), age and income. When the user inputs say 15, then the program must generate 15 objects with random names, age and income.
I know only Math.random which generates random numbers. Is there any other
method which creates random strings?
Please advise me .
Thank you
I have just started programming java. My teacher gave me an assignment
where i have to create an array of objects of arbitrary length ( length decided by the user). Each object shoud have the following structure. Name(String), age and income. When the user inputs say 15, then the program must generate 15 objects with random names, age and income.
I know only Math.random which generates random numbers. Is there any other
method which creates random strings?
Please advise me .
Thank you
Comment