Created
March 27, 2014 17:04
-
-
Save thejavalistener/9812628 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thejavalistener.post.simple; | |
public class DemoArrays | |
{ | |
public static void main(String[] args) | |
{ | |
int arr[] = new int[10]; | |
for(int i=0; i<arr.length; i++) | |
{ | |
// genero un numero random entre 0 y 99 | |
arr[i] = (int)(Math.random()*100); | |
} | |
for(int i=0; i<arr.length; i++) | |
{ | |
System.out.println(arr[i]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment