J2me

Páginas: 2 (311 palabras) Publicado: 29 de noviembre de 2011
Universidad de colima
Facultad de Telemática
Ingeniería en Software
Programación de dispositivos mobiles Luis Fernando Nuñez Delgado 7°J 28 de Noviembre de 2011

Nombre: Saludo androidPlataforma: Android SDK Código:


Nombre: j2me operaciones Plataforma: j2me Código: public void commandAction (Command command, Displayable displayable){//GEN-END:|7commandAction|0|7-preCommandAction int mod; // write pre-action user code here if (displayable == Impares) {//GEN-BEGIN:|7-commandAction|1|71-preAction if (command == Calcular4){//GEN-END:|7-commandAction|1|71-preAction // write pre-action user code here int i; String res; res=""; for(i=1; inum2){ stringItem2.setText("El numero " + num1 + "Es mayor al numero" + num2); } else if (num1 < num2){stringItem2.setText("El numero " + num2 + "Es mayor al numero" + num1); } else{ stringItem2.setText(" Los numeros " + num1 + "Y" + num2 + "Son iguales");

} //GEN-LINE:|7-commandAction|6|58-postAction // writepost-action user code here } else if (command == Salir1) {//GEN-LINE:|7-commandAction|7|60-preAction // write pre-action user code here switchDisplayable (null, getProgramas());//GEN-LINE:|7-commandAction|8|60-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|9|52-preAction } else if (displayable == Negativosposiv) { if (command == Calcular1){//GEN-END:|7-commandAction|9|52-preAction // write pre-action user code here String a; int num1; a = textField2.getString(); num1= Integer.parseInt(a); if(num1>0){ stringItem1.setText("El numero " + num1 + " EsPositivo"); } else { stringItem1.setText("El numero " + num1 + " Es Negativo"); } //GEN-LINE:|7-commandAction|10|52-postAction // write post-action user code here } else if (command == Exit1){//GEN-LINE:|7-commandAction|11|54-preAction // write pre-action user code here switchDisplayable (null, getProgramas ());//GEN-LINE:|7-commandAction|12|54-postAction // write post-action user code here...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • J2Me
  • J2Me
  • Plataforma j2me
  • Java j2me
  • Caracteristicas J2Me
  • Suma j2me
  • J2me
  • J2ME

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS