tpbolon

java_dowhile

Jun 21st, 2020
873
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 tahun = 2000;
  4.         do {
  5.             CmbTahun.addItem(String.valueOf(tahun));
  6.             tahun++;
  7.             if (tahun == 2010) {
  8.                 break;
  9.             }
  10.         } while(tahun <=2020);
  11.     }//GEN-LAST:event_formWindowActivated
RAW Paste Data