tpbolon

java_while

Jun 21st, 2020
891
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
  2.         // TODO add your handling code here:
  3.         int angka=1;
  4.             while(angka<=10){
  5.                 cmbangka1.addItem(String.valueOf(angka));
  6.                 angka++;
  7.             }
  8.            
  9.             int angkabesartokecil=10;
  10.             while (angkabesartokecil >=1){
  11.                 cmbangka2.addItem(String.valueOf(angkabesartokecil));
  12.                 angkabesartokecil--;
  13.             }
  14.     }//GEN-LAST:event_formWindowActivated
RAW Paste Data