Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public static void llenarMatriz() {
  2. for (int i = 0; i < 20; i++) {
  3. for (int j = 0; j < 10; j++) {
  4. if (j == 0) {
  5. alumnos[i][j] = "aaa";
  6. } else {
  7. int random = (int) (Math.random() * 50) + 50 ;
  8. String randomString = Integer.toString(random);
  9.  
  10. alumnos[i][j] = ""+random;
  11. }
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement