Skip to content

Instantly share code, notes, and snippets.

@PurpleBananass
PurpleBananass / Utility.java
Created November 17, 2025 07:05 — forked from Verssae/Utility.java
A Class for JUnit5 Exercise (CSE2024 SW Development Practices)
import java.util.List;
/**
* A Class for JUnit5 Exercise (CSE2024 SW Development Practices)
*
* @author juhansae
* @version 2022.2
* @// Create a JUnit test class with some test methods
* @// Then, refactor it to pass all the tests !
*/
@PurpleBananass
PurpleBananass / CodeReviewEx.java
Last active November 17, 2025 02:22
Code Review Exercise
public class CodeReviewEx {
public static void main(String[] args) {
System.out.println("This will be printed");
}
/* Q1 ~ Q6 (dayOfYear) */
public static int dayOfYear(int month, int dayOfMonth, int year) {
if (month == 2) {
dayOfMonth += 31;
} else if (month == 3) {
dayOfMonth += 59;