Behavioral.Interpreter.Main.main(String[])   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 9
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 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