How to change jButton value when clicked
问题 I kept getting errors while compiling. I have no idea how to use the list generated integers and display it into the jButtons after clicking. public static void Random () { int Rand [] = new int [49]; for (int b = 0; b < 49; b++) Rand [b] = b; List<Integer> alist = Arrays.stream(Rand) .boxed() .map (x -> x + 1) .collect (Collectors.toList()); Collections.shuffle(alist); } private class HandleTextField implements ActionListener { @Override public void actionPerformed(ActionEvent event) { for