Skip to content

Commit 1442e20

Browse files
authored
Merge pull request exercism#1002 from sjwarner-bp/beer-song-ref-update
beer-song: update reference solution to package-private
2 parents 89fe95e + 7a2941d commit 1442e20

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎exercises/beer-song/.meta/src/reference/java/BeerSong.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
public class BeerSong {
2-
public String verse(int number) {
1+
class BeerSong {
2+
String verse(int number) {
33
switch (number) {
44
case 0:
55
return "No more bottles of beer on the wall, no more bottles of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.\n\n";
@@ -12,7 +12,7 @@ public String verse(int number) {
1212
}
1313
}
1414

15-
public String sing(int start, int stop) {
15+
String sing(int start, int stop) {
1616
StringBuilder songOutput = new StringBuilder();
1717

1818
for (int i=start; i>=stop; i--) {
@@ -22,7 +22,7 @@ public String sing(int start, int stop) {
2222
return songOutput.toString();
2323
}
2424

25-
public String singSong() {
25+
String singSong() {
2626
return sing(99,0);
2727
}
2828
}

0 commit comments

Comments
 (0)