Skip to content

Commit 541e6a9

Browse files
lemoncurryFridaTveit
authored andcommitted
settings.gradle: include exercise resistor-color (exercism#1652)
* settings.gradle: include exercise resistor-color * resistor-color: COLORS to lowercase to match checkstyle guidelines
1 parent 24d3811 commit 541e6a9

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎exercises/resistor-color/.meta/src/reference/java/ResistorColor.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
class ResistorColor {
44

5-
final String[] COLORS = {"black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white"};
5+
final String[] colors = {"black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white"};
66

77
int colorCode(String color) {
8-
return Arrays.asList(COLORS).indexOf(color);
8+
return Arrays.asList(colors).indexOf(color);
99
}
1010

1111
String[] colors() {
12-
return COLORS;
12+
return colors;
1313
}
1414
}

‎exercises/settings.gradle‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ include 'rail-fence-cipher'
7474
include 'raindrops'
7575
include 'rational-numbers'
7676
include 'rectangles'
77+
include 'resistor-color'
7778
include 'reverse-string'
7879
include 'rna-transcription'
7980
include 'robot-name'

0 commit comments

Comments
 (0)