From 6daca19b8ca160096bd3a46481d0f7c958d94c28 Mon Sep 17 00:00:00 2001 From: Keerthana Srinivasan Date: Sat, 30 Oct 2021 01:58:09 -0400 Subject: [PATCH] Completed lab --- NumberUtilities.java | 63 +++++++++++++++-- NumberUtilitiesTest.java | 1 + README-TableUtilities.md | 6 +- README-TriangleUtilities.md | 2 +- README.md | 52 +++++++-------- TableUtilities.java | 19 +++++- TableUtilitiesTest.java | 2 + TriangleUtilities.java | 23 +++++-- package.bluej | 130 +++++++++++++++++++++--------------- 9 files changed, 200 insertions(+), 98 deletions(-) diff --git a/NumberUtilities.java b/NumberUtilities.java index 1d5ba50..66445c2 100644 --- a/NumberUtilities.java +++ b/NumberUtilities.java @@ -2,31 +2,80 @@ public class NumberUtilities { + + public static String getRange(int stop) { - return null; - } + + String result = ""; + + for(int i = 0; i < stop ; i++) + { + result = result + i; + } + + return result; + + } + public static String getRange(int start, int stop) { - return null; + String result = ""; + for(int i =start ; i