Code Room
Code reviewMedium
Question
Review this Java helper that computes a subscription anniversary one month out.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
import java.util.Calendar;import java.util.Date; public Date oneMonthLater(Date start) { Calendar c = Calendar.getInstance(); c.setTime(start); c.set(Calendar.MONTH, c.get(Calendar.MONTH) + 1); return c.getTime();} // oneMonthLater(Jan 31) ?Run or narrate your approach, then ask the coach.