Usage of Lambda

I'm tasked with making a GUI for my assignment which have 64 Buttons with a random number(no duplicates). When the button is clicked reveal the number and check if it matches with any of the 8 random number and sort the numbers in ascending order except for the winning number at index 7(last number).

I have made the program running and completed most of the requirements except that i need to implement Lambda which i have no idea where i can implement.

private class LuckyButton implements ActionListener

{

List alist = IntStream.rangeClosed(1,64)

.boxed()

.collect(Collectors.toList());

private...

Read More »

By: StackOverFlow - 7 days ago

Related Posts