Foros del Web » Programación para mayores de 30 ;) » Java »

system

Estas en el tema de system en el foro de Java en Foros del Web. Hola, El problema que tengo es que no quiere correr, me muestra error en cada system. Que estoy haciendo mal??? Zafiro Código PHP: import java . ...
  #1 (permalink)  
Antiguo 12/12/2007, 18:18
 
Fecha de Ingreso: diciembre-2007
Mensajes: 6
Antigüedad: 16 años, 4 meses
Puntos: 0
system

Hola,



El problema que tengo es que no quiere correr, me muestra error en cada system.

Que estoy haciendo mal???



Zafiro

Código PHP:
import java.io.*;
public class 
Maraton_cadena{
    public static 
void main(String args []) throws IOException;
        
int sexo;
        
int tiempo;
        
char cat;
        
char selec;
        
char tecla;
        
String edad;
        
String nombre;
        
String dir;
        
String tel;
        
String corr;
        
system.out.println ("");
        
system.out.println ("* * * * * * * * * * * * * * * DATOS DEL PARTICIPANTE * * * * * * * * * * * * * * * ");
        
system.out.println ("");
        
system.out.println ("");
        
system.out.println ("");
        
system.out.println ("");
        
system.out.println ("");
        
system.out.println ("Introdusca el nombre del participante :");
        
system.out.println ("");
        Do{
            
tecla=(charSystem.in.read[]
            
nombre nombre+tecla;
        }while (
tecla!='\n');
        
system.out.println (""+nombre);
        
system.out.println (" ");

  #2 (permalink)  
Antiguo 12/12/2007, 20:01
 
Fecha de Ingreso: diciembre-2006
Mensajes: 127
Antigüedad: 17 años, 4 meses
Puntos: 1
Sonrisa Re: system

Cita:
Iniciado por Zahafiro Ver Mensaje
Hola,



El problema que tengo es que no quiere correr, me muestra error en cada system.

Que estoy haciendo mal???



Zafiro

Código PHP:
import java.io.*;
public class 
Maraton_cadena{
    public static 
void main(String args []) throws IOException;
        
int sexo;
        
int tiempo;
        
char cat;
        
char selec;
        
char tecla;
        
String edad;
        
String nombre;
        
String dir;
        
String tel;
        
String corr;
        
system.out.println ("");
        
system.out.println ("* * * * * * * * * * * * * * * DATOS DEL PARTICIPANTE * * * * * * * * * * * * * * * ");
        
system.out.println ("");
        
system.out.println ("");
        
system.out.println ("");
        
system.out.println ("");
        
system.out.println ("");
        
system.out.println ("Introdusca el nombre del participante :");
        
system.out.println ("");
        Do{
            
tecla=(charSystem.in.read[]
            
nombre nombre+tecla;
        }while (
tecla!='\n');
        
system.out.println (""+nombre);
        
system.out.println (" ");

system no va asi va de esta forma :

System.out.println("hola");

Saludos
  #3 (permalink)  
Antiguo 13/12/2007, 20:40
 
Fecha de Ingreso: diciembre-2007
Mensajes: 6
Antigüedad: 16 años, 4 meses
Puntos: 0
Re: system

Lamento no haber especificado antes, pero esa fue mi primera opcion, ya lo volvy a correr como me indicas y sigue mostrando la misma cantidad de errores e igualmente en los System

Código PHP:
import java.io.*;
public class 
Maraton_cadena{
    public static 
void main(String args []) throws IOException;
        
int sexo;
        
int tiempo;
        
char cat;
        
char selec;
        
char tecla;
        
String edad;
        
String nombre;
        
String dir;
        
String tel;
        
String corr;
        
System.out.println("");
        
System.out.println("* * * * * * * * * * * * * * * DATOS DEL PARTICIPANTE * * * * * * * * * * * * * * * ");
        
System.out.println("");
        
System.out.println("");
        
System.out.println("");
        
System.out.println("");
        
System.out.println("");
        
System.out.println("Introdusca el nombre del participante :");
        
System.out.println("");
        Do{
            
tecla=(charSystem.in.read[]
            
nombre nombre+tecla;
        }while (
tecla!='\n');
        
System.out.println(""+nombre);
        
System.out.println(" ");

No encuentro el error
  #4 (permalink)  
Antiguo 13/12/2007, 20:44
 
Fecha de Ingreso: diciembre-2007
Mensajes: 6
Antigüedad: 16 años, 4 meses
Puntos: 0
Re: system

Incluso me señala error en el "Do{" ya le puse espacio, lo puse en minusculas pero sigue el mismo error
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 08:17.