You are on page 1of 1

package principal; import java.util.Scanner; public class matriz { static Scanner scan = new Scanner (System.

in); public static void main(String[] args) { matriz1(); matriz2(); matriz3(); matriz4(); } static void matriz1(){ System.out.print("INGRESAR PALABRAS POR EL USUARIO"); String x [][]=new String[4][4]; for(int f=0 ;f<x.length;f++){ for(int co=0 ;co<x.length;co++){ x[f][co]= scan.next(); } System.out.print(" n"); } } static void matriz2(){ System.out.print("PALABRAS ESCRITAS ANTERIOR DE DERECHA A IZQUIERDA"); String x [][]=new String[4][4]; for(int f=0 ;f<x.length;f++){ for(int co=0 ;co<x.length;co++){ x[f][co]= scan.next(); } } } static void matriz3(){ System.out.print("CALCULAR VOCALES CERRADAS"); String x [][]=new String[4][4]; for(int f=0 ;f<x.length;f++){ for(int co=0 ;co<x.length;co++){ x[f][co]= scan.next(); } } } static void matriz4(){ System.out.print("PALABRAS PALINDROMAS"); String x [][]=new String[4][4]; for(int f=0 ;f<x.length;f++){ for(int co=0 ;co<x.length;co++){ x[f][co]= scan.next(); } } } }

You might also like