Friday, October 21, 2005
esto es todo lo que tengo que decir hoy viernes alas 3:51 am

BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String ap="";
String am="";
String name="";
String fecha="";
String dia="";
String mes="";
String año="";
String sexo="";
String edo="";
double rnd = Math.ceil(5001*Math.random());
char aplc='a';
char amlc='a';
char nc='a';

try{
System.out.println("apellido paterno:");
ap = br.readLine().substring(0,2);
System.out.println("apellido materno:");
am = br.readLine().substring(0,1);
System.out.println("nombre:");
name = br.readLine().substring(0,1);
System.out.println("fecha de nacimiento (ej: 31/03/1985) :");
fecha = br.readLine();
dia = fecha.substring(0,2);
mes = fecha.substring(3,5);
año = fecha.substring(8,10);
System.out.println("sexo:");
sexo = br.readLine().substring(0,1);
//System.out.println("ciudad natal (ej: Mexicali = mxl, Tijuana= tj):");
//String cd = br.readLine();
System.out.println("estado natal (ej: Baja California = BC):");
edo = br.readLine();

for(int x = 1; x <= ap.length(); x++){ char[] apc; //apc = new char[ap.length()]; apc = ap.toCharArray(); if( apc[x] == 'a'){} if( apc[x] == 'e'){} if( apc[x] == 'i'){} if( apc[x] == 'o'){} if( apc[x] == 'u'){} else{ aplc = apc[x]; } } for(int y = 1; y <= am.length(); y++){ char[] amc; //apc = new char[ap.length()]; amc = am.toCharArray(); if( amc[y] == 'a'){} if( amc[y] == 'e'){} if( amc[y] == 'i'){} if( amc[y] == 'o'){} if( amc[y] == 'u'){} else{ amlc = amc[y]; } } for(int z = 1; z <= name.length(); z++){ char[] nnc; //apc = new char[ap.length()]; nnc = name.toCharArray(); if( nnc[z] == 'a'){} if( nnc[z] == 'e'){} if( nnc[z] == 'i'){} if( nnc[z] == 'o'){} if( nnc[z] == 'u'){} else{ nc = nnc[z]; } } } catch(Exception e){ } System.out.println(ap+am+name+año+mes+dia+sexo+edo+aplc+amlc+nc); buenos dias

0 comments: