Skip to content

Instantly share code, notes, and snippets.

@thejavalistener
Created March 27, 2014 17:04
Show Gist options
  • Save thejavalistener/9812628 to your computer and use it in GitHub Desktop.
Save thejavalistener/9812628 to your computer and use it in GitHub Desktop.
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