Behavioral.Interpreter.Main   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A main(String[]) 0 9 1
1
/*
2
 * @author  : Jagepard <[email protected]>
3
 * @license https://mit-license.org/ MIT
4
 */
5
6
package Behavioral.Interpreter;
7
8
public class Main {
9
10
    public static void main(String[] args) {
11
        Interpreter interpreter = new Interpreter();
12
        interpreter.addAlbumToRegistry(new Album("Korn", "Untouchables"));
13
        interpreter.addAlbumToRegistry(new Album("Deftones", "Adrenaline"));
14
15
        System.out.println(interpreter.interpret("album 2"));
16
        System.out.println(interpreter.interpret("album author 2"));
17
        System.out.println(interpreter.interpret("album author 1"));
18
        System.out.println(interpreter.interpret("author 1"));
19
    }
20
}
21