+ 12
LMAO the amount of flirting going on😂😂😂
+ 11
Designing I was scrolling down ur activities and I ended up here
+ 11
Designing It took me about a few seconds to scroll all the way down
+ 5
This dude is thirsty AF.
+ 5
This thread is great!
+ 4
I guess it can be useful... if you have the deduction skills of a cabaline.
+ 4
control yourself, Majid 😂😂
+ 4
Thanx @Designing, you were my first!
+ 3
Thanks a lot for this useful information.
+ 3
It was very useful.thanks a lot desinging ☺
+ 2
@Designing sure. Although I mostly use Java for genetic algorithms and neural networks but a simple app should be okay
Okay, here is my take: 1st of all, lots of redundant variables. Why do you need all those "name" variables and not just use the length from the array class?
2nd, why no suggestive names for variables?
Anyway, isn't this much simpler and more explicit?
public static void main(String[] args) {
String[] color = {...};
String[] brand = {...};
String[] year = {...};
String[] miles = {...};
String[] fuel = {...};
String[] tint = {...};
//Get rid of those variables altogether, use a functional approach and use a Random generator
Random rand_gen = new Random();
//Print "sum", then the other stuff. From each array, a random int in 0...length is selected, then we display said element
System.out.println (color[rand_gen.nextInt(color.length)] + brand[rand_gen.nextInt(brand.length)] + year[rand_gen.nextInt(year.length)] +);
System.out.println("Currently at " + miles[rand_gen.nextInt(miles.length)] + " miles.");
System.out.println("Fuel: " + fuel[rand_gen.nextInt(fuel.length)] ) ;
System.out.println("Window Tint: " + tint[rand_gen.nextInt(tint.length)] + "%");
}
+ 1
wow beautiful pic designing
+ 1
Thanks!
- 2
@majid razzak she started following me bro
- 2
you are so sweet hahaha..... xD if you have some trubles just ask.... i on sweetes smiles i ever saw on photo



