Update ITFWriter.java

Fixed spelling of text within "invalid input" exception.
This commit is contained in:
Kbhredsox 2015-12-02 19:05:48 -05:00
parent 2b0ab61128
commit 79b8454186

View file

@ -50,7 +50,7 @@ public final class ITFWriter extends OneDimensionalCodeWriter {
public boolean[] encode(String contents) {
int length = contents.length();
if (length % 2 != 0) {
throw new IllegalArgumentException("The lenght of the input should be even");
throw new IllegalArgumentException("The length of the input should be even");
}
if (length > 80) {
throw new IllegalArgumentException(
@ -73,4 +73,4 @@ public final class ITFWriter extends OneDimensionalCodeWriter {
return result;
}
}
}