Krijo një klasë për një gjuhë kompjuterike të programimit.
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 : this.commands) { this.commands.command) { this.commands.command) { this.commands.command) { this.commands.add(command); this.numLines++; } public List<String> getCommands() { return this.commands; } public int getNumLines) { return this.numLines; } public String