Privacidad: Recuerde que la información escrita en los foros de programación es 100% pública y que su ip será registrada asociada a su mensaje. Si encuentra un mensaje fuera de lugar, por favor, notifiquelo para su revisión y eliminación.
basico de java...urgente!
Enviado por triclap el día 27 de abril de 2008
Hola a todos!! estoy haceindo un trabajo para la universidad...se trata de implementar un servicio en Jini. la interfaz del servidor ya la tengo hecha...ahora estoy haciendo la parte del cliente!! he intentado averiguar loq me me pasa con los errores que me dan...pero no se mucho de java y no se q mas hacer... me salen errores en el DataInputStream y sobretodo en el switch!! alguien me podria ayudar?? muchas gracias!!
//the user choose the service:
election = input.readLine();
System.out.println("Choose the state:\n" + "1- Off - 0º\n" + "2- On - 36º predeterminate\n");
//the user choose the state and the temperature of the refigerator
onoffdegree = input.readLine();
}
//call to the methods
switch(election)
{
case 1: myrefrigeratorJiniService.power(onoffdegree);
break;
case 2: myrefrigeratorJiniService.temperature(onoffdegree);
break;
//case 3: myrefrigeratorJiniService.rfid(read);
default: break;