This is my code, for each array we have been asked to extract a value, to make a getter a math.random and a .length. I'm trying all but purtropo I can not go on. can I come? thank you all
public Integer [] year = {2010, 2008, 2018, 2015, 1994,};
(Edit: Here is the code. How can I create a random and a switch with 3 case?)
utility package;
import java.util.Random;
public class TavoloLavoro {
private static Integer [] year = {2010, 2008, 2018, 2015, 1994,};
private static string [] brand = {"Fiat", "Ford", "Ducati", "BMW", "Yhamaha"};
private static integer [] displacement = {1200, 250, 1400, 1000, 600};
Entire static private [] times = {2,4};
private static integer [] ports = {5, 3};
private static power supply [] power supply = {power supply.
private static integer [] capacity = {1000, 2000, 3000};
}