Skip to content

Commit 722fbe9

Browse files
committed
updated TriangleShell
1 parent 3539476 commit 722fbe9

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/org/teachingkidsprogramming/recipes/completed/section02methods/TriangleShell.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55

66
public class TriangleShell
77
{
8-
private static int length;
8+
private static int length = 1;
99
public static void main(String[] args)
1010
{
1111
// Show the tortoise --#1
1212
Tortoise.show();
1313
// Make the tortoise go as fast as possible --#7
1414
Tortoise.setSpeed(10);
15-
length = 1;
1615
// Do the following 60 times --#8
1716
for (int i = 0; i < 60; i++)
1817
{

src/main/java/org/teachingkidsprogramming/section02methods/TriangleShell.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@SuppressWarnings("unused")
44
public class TriangleShell
55
{
6-
private static int length;
6+
private static int length = 1;
77
public static void main(String[] args)
88
{
99
// Show the tortoise --#1

0 commit comments

Comments
 (0)