SlideShare una empresa de Scribd logo
Programa 24
Nombre: Javier Alejandro León Avalos
Grado y grupo: 3°G
Especialidad: Programación
Descripción del programa
• Programa en el cual se declaran, se les da valor e imprime Arreglos
Bidimensionales
Código
package arreglos;
import javax.swing.JOptionPane;
public class Ejercicio2 {
public static void ArreglosBidimensionales() { int n,m;
n=Integer.parseInt(JOptionPane.showInputDialog(null, "ESCRIBE LAS FILAS DEL ARREGLO"));
m=Integer.parseInt(JOptionPane.showInputDialog(null, "ESCRIBE LAS COLUMNAS DEL ARREGLO"));
int Arreglo[][]=new int [n][m];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
Arreglo[i][j]=Integer.parseInt(JOptionPane.showInputDialog(null,"INGRESE ELVALOR "+"DEL ELEMENTO
ARREGLO["+i+"]"+"["+j+"]"));
}}
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
Object msj="ARREGLO [" + i + "]"+"[" + i + "]"+Arreglo[i][j];
JOptionPane.showInputDialog(null, msj, "SALIDA", JOptionPane.PLAIN_MESSAGE);
System.out.println("ARREGLO[" + i + "]" + j + "[" + "]="+Arreglo[i][j]);}}}
public static void main(String[] args) {
ArreglosBidimensionales();}}
Prueba de escritorio
Conclusiones
• Este programa nos ayuda a entender sobre los arreglos Bidimensionales y
como utilizarlos

Más contenido relacionado

PPTX
Programa 25-28
PPTX
Programa 23
PDF
Programa 18
PPTX
Programa 14
PPTX
Programa 10
PPTX
Programa 17
PPTX
Programa 11
PPTX
Programa 5
Programa 25-28
Programa 23
Programa 18
Programa 14
Programa 10
Programa 17
Programa 11
Programa 5

La actualidad más candente (20)

PPTX
Programa 16
PPTX
Programa 9
PPTX
Programa 8
PPTX
Programa 2
PPTX
Programa 13
PPTX
Programa 15
PPTX
Programa 20
PPTX
Programa 12
PPTX
Programa 7
PPTX
Programa 3
PPTX
Programa 6
PPTX
Programa 4
PPTX
Programa 1
DOCX
Informe#11
PPTX
Programa 7
PPTX
Programa 10
PPTX
Programa 19
PPTX
Programa en java con el Metodo de la burbuja
DOCX
Unid 2 tema 3
PPTX
Programa 11
Programa 16
Programa 9
Programa 8
Programa 2
Programa 13
Programa 15
Programa 20
Programa 12
Programa 7
Programa 3
Programa 6
Programa 4
Programa 1
Informe#11
Programa 7
Programa 10
Programa 19
Programa en java con el Metodo de la burbuja
Unid 2 tema 3
Programa 11
Publicidad

Similar a Programa 24 (20)

PPTX
Programa arreglos 2
PPTX
Programa 23
PPTX
Programa 25-27
PPTX
Programa arreglos 1
PPTX
Arreglos Java
PPTX
Arreglos java
PDF
Arreglos en java v01
PPTX
12-Unidad 3: Encapsulamiento y modularidad
PDF
Arreglos Bidimensionales - Java - NetBeans
PDF
Capitulo4 arreglos
PPTX
Arreglos (unimensionles y matrices (bidimensionales)
PDF
17 arreglos bidimensionales java
PDF
Desarrollo de aplicaciones con Arreglos-bi.pdf
PPTX
Clase 3 java
PDF
Programación 1: estructuras de datos
PPTX
Arreglo multidimensional
DOCX
Formatos tutoria laboratorio
PPT
PPTX
03 uni1-estructuras de datos-arreglos 2 d
PPTX
Array bidimensionales
Programa arreglos 2
Programa 23
Programa 25-27
Programa arreglos 1
Arreglos Java
Arreglos java
Arreglos en java v01
12-Unidad 3: Encapsulamiento y modularidad
Arreglos Bidimensionales - Java - NetBeans
Capitulo4 arreglos
Arreglos (unimensionles y matrices (bidimensionales)
17 arreglos bidimensionales java
Desarrollo de aplicaciones con Arreglos-bi.pdf
Clase 3 java
Programación 1: estructuras de datos
Arreglo multidimensional
Formatos tutoria laboratorio
03 uni1-estructuras de datos-arreglos 2 d
Array bidimensionales
Publicidad

Último (14)

PPT
laser seguridad a la salud humana de piel y vision en laser clase 4
PPTX
PRESENTACION NIA 220 idhsahdjhJKSDHJKSHDJSHDJKHDJHSAJDHJKSAHDJkhjskdhasjdhasj...
PPTX
presentacion_energias_renovables_renovable_.pptx
PPTX
Qué es Google Classroom Insertar SlideShare U 6.pptx
PPTX
Plantilla-Hardware-Informático-oficce.pptx
PPTX
FUNCIONES DE CLASSROOM EN EL FUNCIONAMIENTO ESCOLAR
PPTX
Presentación de un estudio de empresa pp
PDF
[Ebook gratuito] Introducción a la IA Generativa, Instalación y Configuración...
PPTX
Guia de power bi de cero a avanzado detallado
PPTX
Evolución de la computadora ACTUALMENTE.pptx
PDF
LA INTELIGENCIA ARTIFICAL SU HISTORIA Y EL FUTURO
PDF
CAPACITACIÓN MIPIG - MODELO INTEGRADO DE PLANEACIÓN Y GESTIÓN
PDF
Herramientaa de google google keep, maps.pdf
PDF
Frases de Fidel Castro. Compilación Norelys Morales Aguilera
laser seguridad a la salud humana de piel y vision en laser clase 4
PRESENTACION NIA 220 idhsahdjhJKSDHJKSHDJSHDJKHDJHSAJDHJKSAHDJkhjskdhasjdhasj...
presentacion_energias_renovables_renovable_.pptx
Qué es Google Classroom Insertar SlideShare U 6.pptx
Plantilla-Hardware-Informático-oficce.pptx
FUNCIONES DE CLASSROOM EN EL FUNCIONAMIENTO ESCOLAR
Presentación de un estudio de empresa pp
[Ebook gratuito] Introducción a la IA Generativa, Instalación y Configuración...
Guia de power bi de cero a avanzado detallado
Evolución de la computadora ACTUALMENTE.pptx
LA INTELIGENCIA ARTIFICAL SU HISTORIA Y EL FUTURO
CAPACITACIÓN MIPIG - MODELO INTEGRADO DE PLANEACIÓN Y GESTIÓN
Herramientaa de google google keep, maps.pdf
Frases de Fidel Castro. Compilación Norelys Morales Aguilera

Programa 24

  • 1. Programa 24 Nombre: Javier Alejandro León Avalos Grado y grupo: 3°G Especialidad: Programación
  • 2. Descripción del programa • Programa en el cual se declaran, se les da valor e imprime Arreglos Bidimensionales
  • 3. Código package arreglos; import javax.swing.JOptionPane; public class Ejercicio2 { public static void ArreglosBidimensionales() { int n,m; n=Integer.parseInt(JOptionPane.showInputDialog(null, "ESCRIBE LAS FILAS DEL ARREGLO")); m=Integer.parseInt(JOptionPane.showInputDialog(null, "ESCRIBE LAS COLUMNAS DEL ARREGLO")); int Arreglo[][]=new int [n][m]; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ Arreglo[i][j]=Integer.parseInt(JOptionPane.showInputDialog(null,"INGRESE ELVALOR "+"DEL ELEMENTO ARREGLO["+i+"]"+"["+j+"]")); }} for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ Object msj="ARREGLO [" + i + "]"+"[" + i + "]"+Arreglo[i][j]; JOptionPane.showInputDialog(null, msj, "SALIDA", JOptionPane.PLAIN_MESSAGE); System.out.println("ARREGLO[" + i + "]" + j + "[" + "]="+Arreglo[i][j]);}}} public static void main(String[] args) { ArreglosBidimensionales();}}
  • 5. Conclusiones • Este programa nos ayuda a entender sobre los arreglos Bidimensionales y como utilizarlos