System information

Appendix D. JAVA Example Code
D-4
case '8':
System.out.println("Getting 24 hour data");
GetTable("Data1",24);
SendPb();
break;
case '9':
NameList = "Model\0";
GetCommand();
SendPb();
break;
case 'h':
startscreen();
break;
case 'x':
shouldExit = true;
break;
default:
break;
}
}
}
}
catch ( IOException e ) {
System.err.println(e);
}
System.out.println("System Shutting Down");
try {
stdin.close();
}
catch( IOException e ){
System.err.println(e);
}
}
/**
* Internal - Used to display the console menu.
*/
public static void startscreen()
{
System.out.println(" Press 1 for GetTblDef");
System.out.println(" Press 2 for GetPublicValue");
System.out.println(" Press 3 for GetCommand");
System.out.println(" Press 4 for GetClock");
System.out.println(" Press 5 for SetClock");
System.out.println(" Press 6 for GetPublicTable");
System.out.println(" Press 7 for GetPakBusAddress");
System.out.println(" Press 8 for Get 24 Hour Data");
System.out.println(" Press 9 for GetModel");
System.out.println(" Press h to reprint this menu");
System.out.println(" Press x to exit");
}