From 9c7efb5e4afab82a753ecdfe8bee43a04df566c2 Mon Sep 17 00:00:00 2001 From: hrj Date: Sat, 8 Jun 2019 11:06:53 +0530 Subject: [PATCH] toString method for Challenge --- src/main/java/lc/Challenge.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/lc/Challenge.java b/src/main/java/lc/Challenge.java index 2783e2e..ae6373b 100644 --- a/src/main/java/lc/Challenge.java +++ b/src/main/java/lc/Challenge.java @@ -10,4 +10,8 @@ public class Challenge { this.contentType = contentType; this.secret = secret; } + + public String toString() { + return "Challenge: " + contentType + " content length: " + content.length; + } }