Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package basicos6;
- public class Basicos6 {
- public static void main(String[] args) {
- /** Crea un array de enteros de 10 elementos, inicialízalo con los
- * valores que quieras y muéstralo por pantalla */
- int [] miarray = {1,2,3,4,5,6,7,8,9,10};
- for (int i = 0; i < miarray.length; i++) {
- System.out.print(miarray[i] + " ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement