Advertisement
tpbolon

java_dowhile

Jun 21st, 2020
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement