I'm new with java :-(
I need to get value jee repeated with n times (jeejee, jeejeejee etc.), now I get
jee6 !
Test with value 6: 6
jee2 !
Test with value 2: 2
jee3 !
Test with value 3: 3
jee6 !
Test with value 6: 6
jee3 !
Test with value 3: 3
import java.util.Random;
public class Test3{
public static void main(String[] args){<br/>
final Random r = new Random();
for (int i=0; i < 5; i++){
int n = r.nextInt(6) + 1;
System.out.println("Test with value " + n + ": " + jeeJee(n));
}
}
public static int jeeJee(int i){
System.out.println( "jee" + i + " !");
return i;
}
}