From bb51d577c5ab284bd5c23d002c74f128a59951cd Mon Sep 17 00:00:00 2001 From: Ellis John Date: Sat, 30 Oct 2021 22:35:49 -0400 Subject: [PATCH 1/2] completed lab --- NumberUtilities.java | 63 +++++++++++++++--- TableUtilities.java | 57 ++++++++++++++-- TableUtilitiesTest.java | 2 +- TriangleUtilities.java | 37 +++++++++-- package.bluej | 140 +++++++++++++++++++++++----------------- 5 files changed, 222 insertions(+), 77 deletions(-) diff --git a/NumberUtilities.java b/NumberUtilities.java index 1d5ba50..3b22c59 100644 --- a/NumberUtilities.java +++ b/NumberUtilities.java @@ -4,29 +4,74 @@ public class NumberUtilities { public static String getRange(int stop) { - return null; + int i; + String nums = ""; + for (i=0; i Date: Tue, 2 Nov 2021 14:03:30 -0400 Subject: [PATCH 2/2] message --- TableUtilities.java | 2 +- package.bluej | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/TableUtilities.java b/TableUtilities.java index be6da36..04f9660 100644 --- a/TableUtilities.java +++ b/TableUtilities.java @@ -4,7 +4,7 @@ public class TableUtilities { public static String getSmallMultiplicationTable() { String table = ""; - for(int i = 1; i<=5; i++){ + for(int i = 1; i<=8; i++){ for(int j = 1; j<=5; j++) { if (j*i < 10) { table = table + ((" " + (j * i)) + " |"); diff --git a/package.bluej b/package.bluej index 4e56630..8c90424 100644 --- a/package.bluej +++ b/package.bluej @@ -8,19 +8,19 @@ dependency2.type=UsesDependency dependency3.from=TableUtilitiesTest dependency3.to=TableUtilities dependency3.type=UsesDependency -editor.fx.0.height=972 -editor.fx.0.width=960 -editor.fx.0.x=935 -editor.fx.0.y=33 +editor.fx.0.height=0 +editor.fx.0.width=0 +editor.fx.0.x=0 +editor.fx.0.y=0 objectbench.height=163 objectbench.width=893 package.divider.horizontal=0.6 -package.divider.vertical=0.8023255813953488 -package.editor.height=683 +package.divider.vertical=0.734375 +package.editor.height=463 package.editor.width=800 package.editor.x=16 -package.editor.y=65 -package.frame.height=924 +package.editor.y=25 +package.frame.height=704 package.frame.width=917 package.numDependencies=3 package.numTargets=10