vectores en java
//ARREGLO VECTOR
import javax.swing.*;
public class Ejemplo_8 {
public static void main(String[] args){
int i;
String dia[]={"Lunes","Martes","Miercoles","Jueves","Viernes","Sabado","Domingo"};
for(i=0;i<7;i++)
{
System.out.println(dia[i]);
}
}
}
import javax.swing.*;
public class Ejemplo_8 {
public static void main(String[] args){
int i;
String dia[]={"Lunes","Martes","Miercoles","Jueves","Viernes","Sabado","Domingo"};
for(i=0;i<7;i++)
{
System.out.println(dia[i]);
}
}
}
Comentarios