need to create a text file with a random invoice number when clicking on the checkout button. need to do this within a method. I'm not sure on how to create and increment the random file names within the method. I created a method for this but I don't know where to go from here.
private class checkoutListener implements ActionListener{
@Override
public void actionPerformed(ActionEvent e) {
JButton button = (JButton) e.getSource();
if(button == CheckoutBtn){
}