The Resistance puzzle: bug in starter code

A littlebug in the “The Resistance” puzzle starter code:
Here L is not the input Morse seqence’s length (an int) but the input Morse sequence itself (a String)
java release:

public static void main(String args[]) {
        Scanner in = new Scanner(;
        int L = in.nextInt(); // ERROR! must be: String L =; // the input Morse sequence
        int N = in.nextInt();
        for (int i = 0; i < N; i++) {
            String W =;

        // Write an action using System.out.println()
        // To debug: System.err.println("Debug messages...");


There is the same bug in all other languages starter code.