John Coffey

1

votes
1

answer
36

views

JTextArea Output

Good Evening, What can I do to have the output from jTExtArea like in the console? You can see the image how it is, I use .append to show the output in jTextArea Image Code: public void actionPerformed(ActionEvent e) { if (e.getSource() == b1) { for (int i = 0; i < a.pattern_cnt; i++) { for (int j =...
John Coffey
2

votes
2

answer
79

views

Java 8 instead of simple java [duplicate]

This question already has an answer here: How to compare two Streams in Java 8 3 answers I am playing with java streams. Currently, I want to compare 2 lists based on another list. import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; public class Sample { List...
John Coffey