private void jButton2ActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton2ActionPerformed // TODO add your handling code here: Final ob = new Final(); int n = tm.getRowCount(); while (n > 0) { tm.removeRow(--n); } ALLMEDIA.cart_count = 0; ALLMEDIA.o = new Object[10][1]; ob.setVisible(true); this.dispose(); } // GEN-LAST:event_jButton2ActionPerformed
public static void main(String args[]) { Final obj = new Final(); obj.myMethod(); }
public static void main(String[] args) { Final f = new Final(); // 创建Final对象 f.show(); f.setSalary(); }
@Test public void testGetArray() throws Exception { Assert.assertEquals(f.getArray(new int[] {2, 5, 5}), new int[] {2, 5, 6}); }