Está en la página 1de 2

Luis Daniel Santiago Corral Lenguajes y Automatas

Mquina de Turing

Maquina de Turing
/* * To change this template, choose Tools | Templates * and open the template in the editor. */

numele= JOptionPane.showInputDialog("Numero de elementos del lenguaje"); elementos=Integer.parseInt(numele); String lenguaje[]= new String[elementos]; for(int i=0; i<elementos;i++)

package maquinaturing; import javax.swing.*; /** * * @author Chato */ public class Main {

lenguaje[i]=JOptionPane.showInputDialog("E lemento "+i,"del lenguaje" ); String cadena[]= new String[10];

for(int v=0;v <20; v++) { System.out.println(); for(int j=0;j<10;j++) { /** int elementoslenguaje=(int)(Math.random()* elementos);

* @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here

cadena[j]=lenguaje[elementoslenguaje]; } for(int l=0;l<10;l++) System.out.print(cadena[l]);

String numele; int elementos; } }

Luis Daniel Santiago Corral Lenguajes y Automatas

Mquina de Turing

También podría gustarte