Concurrent Score Generation and Sorting Using Runnable and TreeSet in Java

Environment: Windows 11, JDK 17 1. POJO – ExamScoreRecord import java.math.BigDecimal; import java.util.Date; public class ExamScoreRecord implements Comparable<ExamScoreRecord> { private Integer id; private Integer studentId; private Integer academicYear; private BigDecimal languageScore; private BigDecimal mathScore; private BigDecimal ...

Posted on Fri, 15 May 2026 18:15:16 +0000 by sullyman

Understanding Java Set Collections and Data Structures

Set Collection Fundamentals 1.1 Set Collection Characteristics Set collections in Java provide unique storage capabilities: No duplicate elements allowed No indexed access, preventing traditional for-loop iteration 1.2 Basic Set Implementation Example demonstrating string storage and iteration: public class SetBasicsDemo { public stati ...

Posted on Sun, 10 May 2026 14:20:55 +0000 by The Swedish Tower