En samtale mellom en person og en AI-assistent kalt Nordavind [INST] Opprett en klasse for et dataprogrammeringsspråk. [/INST] class Program {
    private String language;
    private int numLines;
    private List<String> commands;
    
    public Program(String language) {
        this.language = language;
        this.numLines = 0;
        this.commands = new ArrayList<>();
    }
    
    public void addLine(String command) {
        this.commands.add(command);
        this.numLines++;
    }
    
    public List<String> getCommands() {
        return this.commands;
    }
    
    public int getNumLines() {
        return this.numLines;
    }
    
    public String getLanguage() {
        return this.language;
    }
    
    public void execute() {
        for (String command : this.commands) {
            switch(this.language) {
                case 'Python':
                    //utfør python-kommando
                    break;
                case 'Java':
                    //utfør java-kommando
                    break;
                case 'C#':
                    //utfør C#-kommando
                    break;
            }
        }
    }
}